Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.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.001774/0.001774, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002249/0.002249, allocations: 214.7 kB / 24.52 MB, free: 3.914 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.471/1.471, allocations: 230.6 MB / 258.3 MB, free: 7.766 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.2292/0.2292, allocations: 44.94 MB / 359.6 MB, free: 6.082 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.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",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.002025/0.002025, allocations: 70.23 kB / 0.4938 GB, free: 10.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3315, allocations: 65.47 MB / 0.5577 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004951/0.3365, allocations: 2.615 MB / 0.5603 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.3382, allocations: 0.9466 MB / 0.5612 GB, free: 3.977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.3384, allocations: 7.938 kB / 0.5612 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.3386, allocations: 51.45 kB / 0.5612 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002374/0.3388, allocations: 115 kB / 0.5614 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.3394, allocations: 163.5 kB / 0.5615 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004561/0.3398, allocations: 378.2 kB / 0.5619 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.34, allocations: 67.16 kB / 0.5619 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.3402, allocations: 135.5 kB / 0.5621 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.3404, allocations: 147.3 kB / 0.5622 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.341e-05/0.3405, allocations: 28 kB / 0.5622 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001232/0.3406, allocations: 47.98 kB / 0.5623 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.4e-05/0.3407, allocations: 67.77 kB / 0.5623 GB, free: 2.785 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.3408, allocations: 131.4 kB / 0.5625 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004616/0.3413, allocations: 386.4 kB / 0.5628 GB, free: 2.277 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3413, allocations: 0 / 0.5628 GB, free: 2.277 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3413, allocations: 0 / 0.5628 GB, free: 2.277 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.3413, allocations: 4 kB / 0.5628 GB, free: 2.273 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.000924/0.3422, allocations: 0.5286 MB / 0.5634 GB, free: 1.715 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3423, allocations: 12.03 kB / 0.5634 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.478e-05/0.3423, allocations: 8.844 kB / 0.5634 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.691e-05/0.3423, allocations: 70.72 kB / 0.5634 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003098/0.3427, allocations: 60.67 kB / 0.5635 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003722/0.343, allocations: 210.7 kB / 0.5637 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.3431, allocations: 25.03 kB / 0.5637 GB, free: 1.301 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.368e-05/0.3431, allocations: 39.88 kB / 0.5638 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005092/0.3436, allocations: 302.3 kB / 0.564 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.3437, allocations: 11.94 kB / 0.5641 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.3437, allocations: 12 kB / 0.5641 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.3437, allocations: 8 kB / 0.5641 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.344, allocations: 175.8 kB / 0.5642 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.346, allocations: 1.237 MB / 0.5655 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004571/0.3465, allocations: 245 kB / 0.5657 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.3466, allocations: 76.31 kB / 0.5658 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.3466, allocations: 4 kB / 0.5658 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.3467, allocations: 42.5 kB / 0.5658 GB, free: 14.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.833e-06/0.3467, allocations: 0 / 0.5658 GB, free: 14.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005161/0.3472, allocations: 217.4 kB / 0.566 GB, free: 14.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.921e-05/0.3473, allocations: 162.2 kB / 0.5662 GB, free: 14.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/0.3475, allocations: 220.9 kB / 0.5664 GB, free: 14.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.3475, allocations: 25.7 kB / 0.5664 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.3477, allocations: 204.5 kB / 0.5666 GB, free: 14.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.146e-05/0.3477, allocations: 99.16 kB / 0.5667 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.313e-05/0.3478, allocations: 61.7 kB / 0.5668 GB, free: 13.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.348, allocations: 334.8 kB / 0.5671 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.3481, allocations: 67.91 kB / 0.5671 GB, free: 13.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002427/0.3484, allocations: 209.9 kB / 0.5673 GB, free: 13.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003872/0.3488, allocations: 289.7 kB / 0.5676 GB, free: 12.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.3488, allocations: 4 kB / 0.5676 GB, free: 12.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005132/0.3493, allocations: 325 kB / 0.5679 GB, free: 12.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.3493, allocations: 15.17 kB / 0.5679 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.3493, allocations: 4 kB / 0.5679 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3493, allocations: 12 kB / 0.568 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003135/0.3496, allocations: 83.84 kB / 0.568 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.3497, allocations: 8 kB / 0.568 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.3498, allocations: 39.77 kB / 0.5681 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.3499, allocations: 12 kB / 0.5681 GB, free: 12.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.000149/0.35, allocations: 149.7 kB / 0.5682 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.3501, allocations: 31.75 kB / 0.5683 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001951/0.3503, allocations: 83.39 kB / 0.5683 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.3503, allocations: 4 kB / 0.5684 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.3503, allocations: 8 kB / 0.5684 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3504, allocations: 7.922 kB / 0.5684 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006265/0.351, allocations: 268.5 kB / 0.5686 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.351, allocations: 3.938 kB / 0.5686 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003594/0.3513, allocations: 63.97 kB / 0.5687 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3514, allocations: 0 / 0.5687 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.3514, allocations: 8 kB / 0.5687 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.3514, allocations: 4 kB / 0.5687 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3514, allocations: 3.938 kB / 0.5687 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006685/0.3521, allocations: 0.6398 MB / 0.5693 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.942e-05/0.3521, allocations: 31.83 kB / 0.5694 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.3522, allocations: 15.92 kB / 0.5694 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002689/0.3524, allocations: 8 kB / 0.5694 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.3525, allocations: 15.91 kB / 0.5694 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.3525, allocations: 12.19 kB / 0.5694 GB, free: 11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001577/0.3526, allocations: 152.5 kB / 0.5696 GB, free: 10.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3526, allocations: 0 / 0.5696 GB, free: 10.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005606/0.3532, allocations: 79.83 kB / 0.5696 GB, free: 10.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (23): * Single equations (assignments): 23 * 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.0009405/0.3541, allocations: 1.19 MB / 0.5708 GB, free: 9.562 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003635/0.3545, allocations: 183.7 kB / 0.571 GB, free: 9.383 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3545, allocations: 0 / 0.571 GB, free: 9.383 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.3546, allocations: 76.16 kB / 0.571 GB, free: 9.309 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008055/0.3554, allocations: 57.05 kB / 0.5711 GB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004563/0.36, allocations: 3.582 MB / 0.5746 GB, free: 5.461 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001978/0.3602, allocations: 165.1 kB / 0.5747 GB, free: 5.277 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.3603, allocations: 34.97 kB / 0.5748 GB, free: 5.242 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.3605, allocations: 95.39 kB / 0.5749 GB, free: 5.148 MB / 414.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3605, allocations: 0 / 0.5749 GB, free: 5.148 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02818/0.3886, allocations: 5.928 MB / 0.5807 GB, free: 15.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.07, allocations: 5.75 kB / 0.5807 GB, free: 15.41 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.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.295618586009368]