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.0009206/0.0009206, allocations: 85.95 kB / 23 MB, free: 1.504 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.001015/0.001015, allocations: 175.6 kB / 26.39 MB, free: 7.988 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.9511/0.9511, allocations: 158.6 MB / 188.3 MB, free: 2.805 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.543e-06/1.543e-06, allocations: 3.938 kB / 252.3 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.791e-05/1.946e-05, allocations: 6.25 kB / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01243/0.01245, allocations: 14.4 MB / 266.7 MB, free: 8.754 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009672/0.02212, allocations: 5.019 MB / 271.7 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.02392, allocations: 107.3 kB / 271.8 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002043/0.02596, allocations: 1.063 MB / 272.9 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002425/0.02838, allocations: 1.281 MB / 274.1 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.02965, allocations: 0.9 MB / 275 MB, free: 360 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002974/0.03263, allocations: 3.778 MB / 278.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001889/0.03452, allocations: 1.81 MB / 280.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002967/0.03748, allocations: 2.991 MB / 283.6 MB, free: 7.676 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001703/0.03919, allocations: 1.777 MB / 285.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005433/0.03973, allocations: 468 kB / 285.9 MB, free: 5.438 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008976/0.04063, allocations: 0.6559 MB / 286.5 MB, free: 4.781 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006901/0.04132, allocations: 1.133 MB / 287.6 MB, free: 3.645 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001159/0.04248, allocations: 1.356 MB / 289 MB, free: 2.285 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002825/0.0453, allocations: 3.259 MB / 292.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.04531, allocations: 0 / 292.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.04531, allocations: 0 / 292.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.791e-05/0.04535, allocations: 0 / 292.3 MB, free: 15.02 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.004899/0.05025, allocations: 4.3 MB / 296.6 MB, free: 10.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.0503, allocations: 11.98 kB / 296.6 MB, free: 10.63 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001738/0.05204, allocations: 0.9431 MB / 297.5 MB, free: 9.688 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001967/0.054, allocations: 1.92 MB / 299.4 MB, free: 7.719 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001377/0.05414, allocations: 238.7 kB / 299.7 MB, free: 7.484 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002938/0.05443, allocations: 312.3 kB / 300 MB, free: 7.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002485/0.05692, allocations: 2.251 MB / 302.2 MB, free: 4.836 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.566e-05/0.05698, allocations: 3.938 kB / 302.2 MB, free: 4.832 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001868/0.05716, allocations: 132 kB / 302.4 MB, free: 4.703 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/0.05727, allocations: 150.2 kB / 302.5 MB, free: 4.555 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001368/0.05863, allocations: 0.9255 MB / 303.4 MB, free: 3.609 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0104/0.06903, allocations: 10.71 MB / 314.1 MB, free: 8.484 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.07048, allocations: 1.112 MB / 315.3 MB, free: 7.418 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/0.071, allocations: 443.2 kB / 315.7 MB, free: 6.984 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001984/0.07299, allocations: 1.602 MB / 317.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.07302, allocations: 50.39 kB / 317.3 MB, free: 5.297 MB / 298.7 MB Notification: Performance of pre-optimization done (n=107): time 2.605e-06/0.07303, allocations: 0 / 317.3 MB, free: 5.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.004681/0.07771, allocations: 3.07 MB / 320.4 MB, free: 2.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.07774, allocations: 68.72 kB / 320.5 MB, free: 2.102 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/0.0789, allocations: 1.466 MB / 321.9 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.146e-05/0.07896, allocations: 49.7 kB / 322 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008099/0.07977, allocations: 1.664 MB / 323.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002839/0.08006, allocations: 0.5152 MB / 324.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003442/0.0804, allocations: 352.9 kB / 324.5 MB, free: 14.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.08051, allocations: 480.7 kB / 325 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.08079, allocations: 211.8 kB / 325.2 MB, free: 13.33 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006872/0.08148, allocations: 1.104 MB / 326.3 MB, free: 11.85 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.0826, allocations: 1.466 MB / 327.8 MB, free: 10.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.08261, allocations: 8 kB / 327.8 MB, free: 10 MB / 314.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001513/0.08412, allocations: 1.428 MB / 329.2 MB, free: 8.555 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.08414, allocations: 12 kB / 329.2 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.812e-05/0.08416, allocations: 20 kB / 329.2 MB, free: 8.523 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002068/0.08437, allocations: 95.44 kB / 329.3 MB, free: 8.418 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009339/0.0853, allocations: 447.3 kB / 329.8 MB, free: 7.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008763/0.08618, allocations: 1.748 MB / 331.5 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005613/0.08674, allocations: 72.06 kB / 331.6 MB, free: 6.051 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.272e-05/0.08682, allocations: 64 kB / 331.6 MB, free: 5.988 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.0005711/0.08739, allocations: 279.9 kB / 331.9 MB, free: 5.703 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002463/0.08764, allocations: 242.7 kB / 332.2 MB, free: 5.465 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.08882, allocations: 0.9648 MB / 333.1 MB, free: 4.477 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.08883, allocations: 12 kB / 333.1 MB, free: 4.465 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.08883, allocations: 7.938 kB / 333.1 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.08884, allocations: 7.969 kB / 333.1 MB, free: 4.449 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00626/0.0951, allocations: 2.717 MB / 335.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.09511, allocations: 0 / 335.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008274/0.09593, allocations: 283.8 kB / 336.1 MB, free: 1.371 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002279/0.09616, allocations: 74.98 kB / 336.2 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.67e-05/0.09626, allocations: 28 kB / 336.2 MB, free: 1.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009705/0.09723, allocations: 1.709 MB / 337.9 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.09723, allocations: 3.938 kB / 338 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.0988, allocations: 1.405 MB / 339.4 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004039/0.09921, allocations: 306.6 kB / 339.7 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.09934, allocations: 27.98 kB / 339.7 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004063/0.09975, allocations: 44.11 kB / 339.7 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.09987, allocations: 101 kB / 339.8 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.834e-05/0.09992, allocations: 27.98 kB / 339.9 MB, free: 13.45 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000679/0.1006, allocations: 0.7687 MB / 340.6 MB, free: 12.69 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1006, allocations: 0 / 340.6 MB, free: 12.69 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001237/0.1018, allocations: 0.5156 MB / 341.1 MB, free: 12.17 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.0002468/0.1021, allocations: 163 kB / 341.3 MB, free: 12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.1033, allocations: 1.109 MB / 342.4 MB, free: 10.87 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.1033, allocations: 0 / 342.4 MB, free: 10.87 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005981/0.1039, allocations: 0.6173 MB / 343 MB, free: 10.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.1051, allocations: 477.1 kB / 343.5 MB, free: 9.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005923/0.111, allocations: 4.856 MB / 348.3 MB, free: 4.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000637/0.1117, allocations: 0.7541 MB / 349.1 MB, free: 4.043 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007077/0.1124, allocations: 276.7 kB / 349.4 MB, free: 3.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007914/0.1132, allocations: 0.5292 MB / 349.9 MB, free: 3.238 MB / 330.7 MB Notification: Performance of SimCode: time 8.41e-07/0.1132, allocations: 0 / 349.9 MB, free: 3.238 MB / 330.7 MB Notification: Performance of Templates: time 0.1543/0.2675, allocations: 25.15 MB / 375 MB, free: 74.1 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.345011606812477]