Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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.001399/0.001399, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 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.001507/0.001507, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.482/1.482, allocations: 230.6 MB / 258.3 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2149/0.2149, allocations: 44.9 MB / 359.6 MB, free: 6.316 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 73.77 kB / 0.4938 GB, free: 10.78 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3495, allocations: 65.47 MB / 0.5578 GB, free: 7.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.00428/0.3538, allocations: 2.658 MB / 0.5604 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.3555, allocations: 0.7362 MB / 0.5611 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.3556, allocations: 7.938 kB / 0.5611 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.3558, allocations: 47.52 kB / 0.5611 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001997/0.356, allocations: 91.2 kB / 0.5612 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003437/0.3564, allocations: 99.8 kB / 0.5613 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004581/0.3568, allocations: 334.5 kB / 0.5616 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.357, allocations: 67.88 kB / 0.5617 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002717/0.3573, allocations: 143.5 kB / 0.5618 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.3575, allocations: 131.4 kB / 0.562 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.768e-05/0.3575, allocations: 24 kB / 0.562 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.535e-05/0.3576, allocations: 24 kB / 0.562 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.543e-05/0.3576, allocations: 59.77 kB / 0.5621 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.3578, allocations: 143.2 kB / 0.5622 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004242/0.3582, allocations: 314.6 kB / 0.5625 GB, free: 2.812 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3582, allocations: 3.938 kB / 0.5625 GB, free: 2.809 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3582, allocations: 0 / 0.5625 GB, free: 2.809 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3582, allocations: 0 / 0.5625 GB, free: 2.809 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009503/0.3592, allocations: 0.5168 MB / 0.563 GB, free: 2.262 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.3592, allocations: 12.03 kB / 0.563 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.565e-05/0.3592, allocations: 4.688 kB / 0.563 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.263e-05/0.3593, allocations: 62.72 kB / 0.5631 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.3596, allocations: 48.73 kB / 0.5631 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004205/0.36, allocations: 221.8 kB / 0.5634 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.36, allocations: 20.88 kB / 0.5634 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.856e-05/0.3601, allocations: 32.33 kB / 0.5634 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005172/0.3606, allocations: 285 kB / 0.5637 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.25e-05/0.3606, allocations: 7.891 kB / 0.5637 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.3606, allocations: 12 kB / 0.5637 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.3607, allocations: 8 kB / 0.5637 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004481/0.3611, allocations: 179.8 kB / 0.5639 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.3629, allocations: 1.246 MB / 0.5651 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004474/0.3634, allocations: 242.3 kB / 0.5653 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002056/0.3636, allocations: 91.55 kB / 0.5654 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.001e-05/0.3636, allocations: 12.11 kB / 0.5654 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3637, allocations: 34.56 kB / 0.5655 GB, free: 15.56 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.793e-06/0.3637, allocations: 4 kB / 0.5655 GB, free: 15.56 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002591/0.3662, allocations: 1.19 MB / 0.5666 GB, free: 14.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.422e-05/0.3663, allocations: 136.5 kB / 0.5667 GB, free: 14.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.3666, allocations: 237 kB / 0.567 GB, free: 13.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.3666, allocations: 29.7 kB / 0.567 GB, free: 13.81 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.3668, allocations: 180.6 kB / 0.5672 GB, free: 13.63 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.414e-05/0.3668, allocations: 115 kB / 0.5673 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.367, allocations: 74.06 kB / 0.5674 GB, free: 13.44 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.3671, allocations: 334.8 kB / 0.5677 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.3674, allocations: 104.8 kB / 0.5678 GB, free: 13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003649/0.3678, allocations: 245.7 kB / 0.568 GB, free: 12.7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006878/0.3685, allocations: 377.2 kB / 0.5684 GB, free: 12.27 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.3685, allocations: 3.938 kB / 0.5684 GB, free: 12.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008217/0.3693, allocations: 400.9 kB / 0.5688 GB, free: 11.87 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.3693, allocations: 8 kB / 0.5688 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.3693, allocations: 4.406 kB / 0.5688 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.3693, allocations: 12 kB / 0.5688 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.3697, allocations: 95.88 kB / 0.5689 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/0.3697, allocations: 11.94 kB / 0.5689 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.3699, allocations: 31.92 kB / 0.5689 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.37, allocations: 15.98 kB / 0.5689 GB, free: 11.69 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001684/0.3701, allocations: 153.7 kB / 0.5691 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.3702, allocations: 31.81 kB / 0.5691 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.717e-05/0.3703, allocations: 37.7 kB / 0.5691 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3703, allocations: 4 kB / 0.5691 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3703, allocations: 0 / 0.5691 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.3703, allocations: 4 kB / 0.5691 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.3719, allocations: 0.95 MB / 0.5701 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.3719, allocations: 96 / 0.5701 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003939/0.3723, allocations: 79.83 kB / 0.5702 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.3723, allocations: 3.938 kB / 0.5702 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/0.3723, allocations: 11.98 kB / 0.5702 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.445e-06/0.3724, allocations: 12 kB / 0.5702 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3724, allocations: 0 / 0.5702 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.3734, allocations: 0.7378 MB / 0.5709 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.436e-05/0.3735, allocations: 23.81 kB / 0.5709 GB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.506e-05/0.3735, allocations: 12 kB / 0.5709 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.3738, allocations: 16.23 kB / 0.5709 GB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.946e-05/0.3739, allocations: 31.95 kB / 0.571 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.3739, allocations: 19.92 kB / 0.571 GB, free: 9.477 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001611/0.3741, allocations: 160.5 kB / 0.5711 GB, free: 9.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3741, allocations: 0 / 0.5711 GB, free: 9.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005093/0.3746, allocations: 68 kB / 0.5712 GB, free: 9.254 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001389/0.376, allocations: 1.278 MB / 0.5725 GB, free: 7.941 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007101/0.3767, allocations: 256.9 kB / 0.5727 GB, free: 7.691 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.644e-06/0.3767, allocations: 4.062 kB / 0.5727 GB, free: 7.688 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000293/0.377, allocations: 127.7 kB / 0.5728 GB, free: 7.562 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006683/0.3777, allocations: 43.89 kB / 0.5729 GB, free: 7.523 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004984/0.3826, allocations: 3.524 MB / 0.5763 GB, free: 3.773 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000469/0.3831, allocations: 0.7719 MB / 0.5771 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.3833, allocations: 30.97 kB / 0.5771 GB, free: 2.945 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.3834, allocations: 99.39 kB / 0.5772 GB, free: 2.848 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3834, allocations: 0 / 0.5772 GB, free: 2.848 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02772/0.4111, allocations: 5.766 MB / 0.5828 GB, free: 13.24 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.28, allocations: 13.02 kB / 0.5828 GB, free: 13.23 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219824 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.420113579020835]