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.0009625/0.0009625, allocations: 80.92 kB / 22.28 MB, free: 2.207 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.001348/0.001348, allocations: 167.8 kB / 25.7 MB, free: 8.395 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.9366/0.9366, allocations: 158.6 MB / 187.6 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.894e-06/1.894e-06, allocations: 0 / 251.6 MB, free: 7.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.111e-05/2.3e-05, allocations: 10.25 kB / 251.6 MB, free: 7.195 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.0125/0.01252, allocations: 14.47 MB / 266.1 MB, free: 8.656 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.02398, allocations: 5.227 MB / 271.3 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003178/0.02716, allocations: 107.3 kB / 271.4 MB, free: 3.305 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002988/0.03014, allocations: 1.095 MB / 272.5 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003774/0.03392, allocations: 1.288 MB / 273.8 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001767/0.03568, allocations: 0.896 MB / 274.7 MB, free: 8 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004104/0.03979, allocations: 3.778 MB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001976/0.04176, allocations: 1.861 MB / 280.3 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003493/0.04526, allocations: 2.967 MB / 283.3 MB, free: 7.285 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002338/0.04759, allocations: 1.773 MB / 285.1 MB, free: 5.508 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005541/0.04815, allocations: 468 kB / 285.5 MB, free: 5.051 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.04921, allocations: 0.6753 MB / 286.2 MB, free: 4.375 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006739/0.04989, allocations: 1.137 MB / 287.3 MB, free: 3.234 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.0511, allocations: 1.352 MB / 288.7 MB, free: 1.879 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003549/0.05465, allocations: 3.263 MB / 291.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.05465, allocations: 0 / 291.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.05466, allocations: 0 / 291.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.617e-05/0.05474, allocations: 0 / 291.9 MB, free: 14.61 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.005395/0.06014, allocations: 4.028 MB / 296 MB, free: 10.52 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.06018, allocations: 11.98 kB / 296 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001921/0.0621, allocations: 0.8552 MB / 296.8 MB, free: 9.656 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002038/0.06414, allocations: 1.355 MB / 298.2 MB, free: 8.246 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.06426, allocations: 234.7 kB / 298.4 MB, free: 8.016 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003196/0.06458, allocations: 320.3 kB / 298.7 MB, free: 7.703 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002964/0.06755, allocations: 2.288 MB / 301 MB, free: 5.332 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.934e-05/0.06761, allocations: 11.88 kB / 301 MB, free: 5.32 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001931/0.0678, allocations: 132 kB / 301.2 MB, free: 5.191 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/0.06792, allocations: 146.2 kB / 301.3 MB, free: 5.047 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.0694, allocations: 0.9384 MB / 302.2 MB, free: 4.086 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01009/0.07949, allocations: 8.604 MB / 310.8 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.08083, allocations: 1.061 MB / 311.9 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004795/0.08131, allocations: 396.4 kB / 312.3 MB, free: 9.629 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00234/0.08365, allocations: 1.297 MB / 313.6 MB, free: 8.312 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.08368, allocations: 47.55 kB / 313.6 MB, free: 8.254 MB / 298.7 MB Notification: Performance of pre-optimization done (n=107): time 3.316e-06/0.08368, allocations: 4 kB / 313.6 MB, free: 8.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.005268/0.08895, allocations: 3.164 MB / 316.8 MB, free: 5.047 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.08899, allocations: 68.72 kB / 316.9 MB, free: 4.969 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009699/0.08996, allocations: 1.251 MB / 318.1 MB, free: 3.715 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.823e-05/0.09001, allocations: 49.7 kB / 318.2 MB, free: 3.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005358/0.09055, allocations: 1.327 MB / 319.5 MB, free: 2.316 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002632/0.09081, allocations: 0.5035 MB / 320 MB, free: 1.809 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002935/0.09111, allocations: 319.3 kB / 320.3 MB, free: 1.488 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003072/0.09141, allocations: 301.1 kB / 320.6 MB, free: 1.191 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.0917, allocations: 210.7 kB / 320.8 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005179/0.09222, allocations: 0.8224 MB / 321.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009378/0.09315, allocations: 1.208 MB / 322.8 MB, free: 14.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.09316, allocations: 4 kB / 322.8 MB, free: 14.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00129/0.09445, allocations: 1.12 MB / 324 MB, free: 13.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.09448, allocations: 15.94 kB / 324 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.09449, allocations: 20 kB / 324 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001924/0.09469, allocations: 90.52 kB / 324.1 MB, free: 13.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.09577, allocations: 0.5032 MB / 324.6 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000674/0.09645, allocations: 1.201 MB / 325.8 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006204/0.09707, allocations: 59.95 kB / 325.9 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.667e-05/0.09714, allocations: 71.98 kB / 325.9 MB, free: 11.21 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.0005735/0.09772, allocations: 232.1 kB / 326.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.0979, allocations: 147.8 kB / 326.3 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001212/0.09911, allocations: 0.8081 MB / 327.1 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.465e-06/0.09912, allocations: 12 kB / 327.1 MB, free: 9.988 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.09913, allocations: 15.94 kB / 327.1 MB, free: 9.973 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.09913, allocations: 3.984 kB / 327.1 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003442/0.1026, allocations: 2.205 MB / 329.3 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.1026, allocations: 0 / 329.3 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008515/0.1034, allocations: 335.7 kB / 329.7 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001547/0.1036, allocations: 62.5 kB / 329.7 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.698e-05/0.1036, allocations: 24 kB / 329.7 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005842/0.1042, allocations: 1.17 MB / 330.9 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1042, allocations: 4 kB / 330.9 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.1056, allocations: 1.146 MB / 332.1 MB, free: 4.805 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004245/0.106, allocations: 214.7 kB / 332.3 MB, free: 4.594 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.1061, allocations: 24 kB / 332.3 MB, free: 4.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004041/0.1065, allocations: 39.98 kB / 332.3 MB, free: 4.531 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.1066, allocations: 97.11 kB / 332.4 MB, free: 4.434 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-05/0.1067, allocations: 31.98 kB / 332.5 MB, free: 4.402 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005931/0.1073, allocations: 0.6065 MB / 333.1 MB, free: 3.801 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1073, allocations: 0 / 333.1 MB, free: 3.801 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001166/0.1084, allocations: 0.5117 MB / 333.6 MB, free: 3.289 MB / 314.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.0002396/0.1087, allocations: 156.1 kB / 333.7 MB, free: 3.129 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.1101, allocations: 0.9581 MB / 334.7 MB, free: 2.156 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.993e-05/0.1101, allocations: 21.81 kB / 334.7 MB, free: 2.137 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000495/0.1106, allocations: 0.4951 MB / 335.2 MB, free: 1.621 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.1117, allocations: 472.5 kB / 335.7 MB, free: 1.168 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006294/0.118, allocations: 4.807 MB / 340.5 MB, free: 12.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005334/0.1186, allocations: 0.6292 MB / 341.1 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001145/0.1197, allocations: 284.6 kB / 341.4 MB, free: 11.33 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007991/0.1205, allocations: 475.1 kB / 341.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of SimCode: time 1.653e-06/0.1205, allocations: 0 / 341.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of Templates: time 0.148/0.2685, allocations: 25 MB / 366.8 MB, free: 78.48 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 -s gbode -gbm=radauIIA3 -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.372866776306182]