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.001464/0.001464, allocations: 75.75 kB / 21.97 MB, free: 2.598 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.001066/0.001066, allocations: 162.5 kB / 25.33 MB, free: 8.543 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.9211/0.9211, allocations: 158.6 MB / 187.2 MB, free: 2.898 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 2.795e-06/2.795e-06, allocations: 0 / 251.1 MB, free: 7.492 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.109e-05/4.388e-05, allocations: 2.312 kB / 251.1 MB, free: 7.488 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.02047/0.02052, allocations: 14.89 MB / 265.9 MB, free: 8.523 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01338/0.0339, allocations: 5.046 MB / 271 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003933/0.03784, allocations: 115.2 kB / 271.1 MB, free: 3.348 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003252/0.04109, allocations: 1.06 MB / 272.2 MB, free: 2.281 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004504/0.04559, allocations: 1.285 MB / 273.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00193/0.04752, allocations: 0.9155 MB / 274.4 MB, free: 72 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00482/0.05234, allocations: 3.766 MB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002588/0.05493, allocations: 1.806 MB / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004146/0.05908, allocations: 2.62 MB / 282.6 MB, free: 7.781 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003204/0.06228, allocations: 1.894 MB / 284.5 MB, free: 5.883 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001357/0.06364, allocations: 476 kB / 284.9 MB, free: 5.418 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00249/0.06613, allocations: 0.6675 MB / 285.6 MB, free: 4.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001274/0.0674, allocations: 1.2 MB / 286.8 MB, free: 3.547 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002726/0.07013, allocations: 1.388 MB / 288.2 MB, free: 2.156 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006004/0.07613, allocations: 3.329 MB / 291.5 MB, free: 14.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.07614, allocations: 0 / 291.5 MB, free: 14.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.07614, allocations: 0 / 291.5 MB, free: 14.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002074/0.07635, allocations: 0 / 291.5 MB, free: 14.82 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.007216/0.08357, allocations: 4.453 MB / 296 MB, free: 10.29 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.08361, allocations: 19.97 kB / 296 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002197/0.08581, allocations: 0.9822 MB / 297 MB, free: 9.289 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002765/0.08857, allocations: 1.959 MB / 298.9 MB, free: 7.281 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001384/0.08871, allocations: 230.7 kB / 299.1 MB, free: 7.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003543/0.08906, allocations: 316.3 kB / 299.5 MB, free: 6.746 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003904/0.09297, allocations: 2.451 MB / 301.9 MB, free: 4.203 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.694e-05/0.09303, allocations: 19.88 kB / 301.9 MB, free: 4.184 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001965/0.09323, allocations: 132 kB / 302.1 MB, free: 4.055 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001202/0.09335, allocations: 146.2 kB / 302.2 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002491/0.09584, allocations: 1.184 MB / 303.4 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01332/0.1092, allocations: 10.95 MB / 314.3 MB, free: 7.348 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00176/0.1109, allocations: 1.17 MB / 315.5 MB, free: 6.215 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007231/0.1116, allocations: 499 kB / 316 MB, free: 5.727 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003196/0.1148, allocations: 1.727 MB / 317.7 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.394e-05/0.1149, allocations: 46.39 kB / 317.8 MB, free: 3.918 MB / 298.7 MB Notification: Performance of pre-optimization done (n=108): time 5.16e-06/0.1149, allocations: 0 / 317.8 MB, free: 3.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=142): time 0.0066/0.1215, allocations: 3.774 MB / 321.5 MB, free: 96 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.1215, allocations: 68.72 kB / 321.6 MB, free: 16 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/0.1232, allocations: 1.53 MB / 323.1 MB, free: 14.47 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.745e-05/0.1233, allocations: 49.7 kB / 323.2 MB, free: 14.42 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008559/0.1241, allocations: 1.649 MB / 324.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003338/0.1244, allocations: 0.5153 MB / 325.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003548/0.1248, allocations: 353.1 kB / 325.7 MB, free: 11.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1249, allocations: 480.8 kB / 326.2 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004836/0.1254, allocations: 279.8 kB / 326.4 MB, free: 11.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009802/0.1264, allocations: 1.175 MB / 327.6 MB, free: 9.578 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.128, allocations: 1.572 MB / 329.2 MB, free: 7.637 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.735e-05/0.1281, allocations: 8 kB / 329.2 MB, free: 7.629 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002404/0.1305, allocations: 1.569 MB / 330.8 MB, free: 6.039 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/0.1305, allocations: 12.88 kB / 330.8 MB, free: 6.027 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.708e-05/0.1305, allocations: 20 kB / 330.8 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003347/0.1309, allocations: 99 kB / 330.9 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.132, allocations: 491.2 kB / 331.4 MB, free: 5.418 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.1332, allocations: 1.771 MB / 333.1 MB, free: 3.527 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.1343, allocations: 115.8 kB / 333.2 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/0.1344, allocations: 84 kB / 333.3 MB, free: 3.332 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 (232): * Single equations (assignments): 229 * 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.0009223/0.1353, allocations: 284 kB / 333.6 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003531/0.1356, allocations: 242.7 kB / 333.8 MB, free: 2.805 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.1373, allocations: 1.094 MB / 334.9 MB, free: 1.688 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.1373, allocations: 16 kB / 335 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1373, allocations: 4 kB / 335 MB, free: 1.668 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.1373, allocations: 7.969 kB / 335 MB, free: 1.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005069/0.1424, allocations: 3.422 MB / 338.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.1424, allocations: 8.062 kB / 338.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007503/0.1431, allocations: 311.6 kB / 338.7 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001883/0.1433, allocations: 82.94 kB / 338.8 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.247e-05/0.1434, allocations: 24 kB / 338.8 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008082/0.1442, allocations: 1.743 MB / 340.5 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.1442, allocations: 4 kB / 340.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001969/0.1462, allocations: 1.577 MB / 342.1 MB, free: 10.19 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006106/0.1468, allocations: 350.8 kB / 342.5 MB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.1469, allocations: 28 kB / 342.5 MB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004968/0.1474, allocations: 83.84 kB / 342.6 MB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.1476, allocations: 97.08 kB / 342.7 MB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.395e-05/0.1476, allocations: 35.98 kB / 342.7 MB, free: 9.602 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001017/0.1486, allocations: 0.8588 MB / 343.6 MB, free: 8.75 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1486, allocations: 4 kB / 343.6 MB, free: 8.746 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00154/0.1502, allocations: 0.5273 MB / 344.1 MB, free: 8.219 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 (141): * Single equations (assignments): 138 * 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.0003554/0.1505, allocations: 174.8 kB / 344.3 MB, free: 8.039 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002058/0.1526, allocations: 1.226 MB / 345.5 MB, free: 6.789 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1526, allocations: 3.938 kB / 345.5 MB, free: 6.785 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009773/0.1536, allocations: 0.6648 MB / 346.2 MB, free: 6.094 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.1554, allocations: 496.7 kB / 346.7 MB, free: 5.621 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00997/0.1653, allocations: 4.903 MB / 351.6 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1404/0.3058, allocations: 0.7438 MB / 352.3 MB, free: 82.29 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001647/0.3074, allocations: 418.3 kB / 352.7 MB, free: 82.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004976/0.3079, allocations: 148.4 kB / 352.9 MB, free: 82.26 MB / 330.7 MB Notification: Performance of SimCode: time 2.084e-06/0.3079, allocations: 0 / 352.9 MB, free: 82.26 MB / 330.7 MB Notification: Performance of Templates: time 0.03277/0.3407, allocations: 24.38 MB / 377.2 MB, free: 68.99 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.642532262019813]