Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009205/0.0009205, allocations: 84.39 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 166.9 kB / 25.61 MB, free: 8.91 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9855/0.9855, allocations: 158.6 MB / 187.5 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 251.5 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.491e-05/1.663e-05, allocations: 2.312 kB / 251.5 MB, free: 7.223 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01492/0.01494, allocations: 14.4 MB / 265.9 MB, free: 8.742 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00914/0.02408, allocations: 5.007 MB / 270.9 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001928/0.02601, allocations: 111.2 kB / 271 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002746/0.02875, allocations: 1.067 MB / 272.1 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002752/0.03151, allocations: 1.288 MB / 273.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001614/0.03312, allocations: 0.8999 MB / 274.3 MB, free: 344 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003509/0.03663, allocations: 3.767 MB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002529/0.03916, allocations: 1.802 MB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002884/0.04204, allocations: 3.002 MB / 282.8 MB, free: 7.668 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002113/0.04415, allocations: 1.765 MB / 284.6 MB, free: 5.898 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007605/0.04491, allocations: 468 kB / 285.1 MB, free: 5.441 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000935/0.04585, allocations: 0.6558 MB / 285.7 MB, free: 4.785 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008755/0.04672, allocations: 1.141 MB / 286.9 MB, free: 3.641 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009508/0.04768, allocations: 1.349 MB / 288.2 MB, free: 2.289 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002517/0.05019, allocations: 3.271 MB / 291.5 MB, free: 15.01 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.0502, allocations: 0 / 291.5 MB, free: 15.01 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.0502, allocations: 0 / 291.5 MB, free: 15.01 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.154e-05/0.05023, allocations: 0 / 291.5 MB, free: 15.01 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.004916/0.05514, allocations: 4.3 MB / 295.8 MB, free: 10.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.05519, allocations: 15.98 kB / 295.8 MB, free: 10.62 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.0569, allocations: 0.9392 MB / 296.7 MB, free: 9.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001842/0.05875, allocations: 1.912 MB / 298.6 MB, free: 7.719 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.05886, allocations: 238.7 kB / 298.9 MB, free: 7.484 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002813/0.05914, allocations: 320.3 kB / 299.2 MB, free: 7.172 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002726/0.06187, allocations: 2.247 MB / 301.4 MB, free: 4.832 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.162e-05/0.06192, allocations: 7.938 kB / 301.4 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001825/0.0621, allocations: 132 kB / 301.6 MB, free: 4.695 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001051/0.06221, allocations: 146.2 kB / 301.7 MB, free: 4.551 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.06357, allocations: 0.9372 MB / 302.7 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01055/0.07412, allocations: 10.71 MB / 313.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.0755, allocations: 1.1 MB / 314.5 MB, free: 7.406 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007651/0.07626, allocations: 443.2 kB / 314.9 MB, free: 6.973 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00185/0.07811, allocations: 1.613 MB / 316.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.07814, allocations: 46.39 kB / 316.6 MB, free: 5.277 MB / 298.7 MB Notification: Performance of pre-optimization done (n=107): time 2.224e-06/0.07814, allocations: 0 / 316.6 MB, free: 5.277 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.004485/0.08263, allocations: 3.062 MB / 319.6 MB, free: 2.168 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.08266, allocations: 64.72 kB / 319.7 MB, free: 2.094 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001154/0.08382, allocations: 1.474 MB / 321.2 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.914e-05/0.08388, allocations: 49.7 kB / 321.2 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.0849, allocations: 1.664 MB / 322.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002684/0.08517, allocations: 0.5191 MB / 323.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003209/0.08549, allocations: 352.9 kB / 323.7 MB, free: 13.99 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.478e-05/0.08558, allocations: 476.8 kB / 324.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002573/0.08584, allocations: 211.8 kB / 324.4 MB, free: 13.31 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006486/0.08649, allocations: 1.108 MB / 325.5 MB, free: 11.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.08756, allocations: 1.47 MB / 327 MB, free: 9.988 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.08757, allocations: 4 kB / 327 MB, free: 9.984 MB / 314.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001926/0.08949, allocations: 1.429 MB / 328.4 MB, free: 8.535 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.08951, allocations: 12 kB / 328.4 MB, free: 8.523 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.08953, allocations: 20 kB / 328.5 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001797/0.08971, allocations: 95 kB / 328.5 MB, free: 8.398 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008626/0.09057, allocations: 447.5 kB / 329 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007413/0.09131, allocations: 1.748 MB / 330.7 MB, free: 6.102 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005066/0.09182, allocations: 72.06 kB / 330.8 MB, free: 6.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.436e-05/0.0919, allocations: 67.98 kB / 330.9 MB, free: 5.965 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (231): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005011/0.0924, allocations: 276 kB / 331.1 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/0.09261, allocations: 238.7 kB / 331.4 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0011/0.09371, allocations: 0.9648 MB / 332.3 MB, free: 4.461 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.09372, allocations: 15.98 kB / 332.4 MB, free: 4.445 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.09373, allocations: 4 kB / 332.4 MB, free: 4.441 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.108e-06/0.09373, allocations: 11.91 kB / 332.4 MB, free: 4.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/0.09678, allocations: 2.717 MB / 335.1 MB, free: 1.629 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.09679, allocations: 8 kB / 335.1 MB, free: 1.621 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008531/0.09764, allocations: 271.9 kB / 335.4 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001533/0.0978, allocations: 71 kB / 335.4 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.966e-05/0.09785, allocations: 28 kB / 335.5 MB, free: 1.246 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006881/0.09853, allocations: 1.721 MB / 337.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.09854, allocations: 4 kB / 337.2 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.0999, allocations: 1.397 MB / 338.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000369/0.1003, allocations: 314.6 kB / 338.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.1004, allocations: 24 kB / 338.9 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.1007, allocations: 39.98 kB / 338.9 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.747e-05/0.1008, allocations: 101.1 kB / 339 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-05/0.1009, allocations: 31.98 kB / 339.1 MB, free: 13.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005779/0.1014, allocations: 0.7687 MB / 339.8 MB, free: 12.67 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1014, allocations: 0 / 339.8 MB, free: 12.67 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001102/0.1025, allocations: 0.5195 MB / 340.4 MB, free: 12.15 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002567/0.1028, allocations: 166.9 kB / 340.5 MB, free: 11.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.1039, allocations: 1.102 MB / 341.6 MB, free: 10.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1039, allocations: 4 kB / 341.6 MB, free: 10.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005291/0.1045, allocations: 0.608 MB / 342.2 MB, free: 10.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00135/0.1058, allocations: 481.2 kB / 342.7 MB, free: 9.754 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005356/0.1112, allocations: 4.856 MB / 347.6 MB, free: 4.801 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005736/0.1117, allocations: 0.7541 MB / 348.3 MB, free: 4.023 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006943/0.1124, allocations: 284.6 kB / 348.6 MB, free: 3.742 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007682/0.1132, allocations: 0.5214 MB / 349.1 MB, free: 3.219 MB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1132, allocations: 0 / 349.1 MB, free: 3.219 MB / 330.7 MB Notification: Performance of Templates: time 0.1486/0.2618, allocations: 24.72 MB / 373.8 MB, free: 73.03 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.315129150170833]