Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001716/0.001716, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002015/0.002015, allocations: 214.1 kB / 24.52 MB, free: 3.941 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.464/1.464, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2433/0.2433, allocations: 46.97 MB / 361.7 MB, free: 4.039 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002665/0.002665, allocations: 67.84 kB / 0.4969 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3605, allocations: 66.03 MB / 0.5613 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004696/0.3652, allocations: 2.824 MB / 0.5641 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002138/0.3673, allocations: 1.009 MB / 0.5651 GB, free: 408 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003804/0.3677, allocations: 7.938 kB / 0.5651 GB, free: 400 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002989/0.368, allocations: 67.31 kB / 0.5651 GB, free: 332 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004114/0.3684, allocations: 127 kB / 0.5653 GB, free: 204 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000696/0.3691, allocations: 171.5 kB / 0.5654 GB, free: 32 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006802/0.3698, allocations: 457.9 kB / 0.5659 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.37, allocations: 77.73 kB / 0.5659 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002865/0.3703, allocations: 171.4 kB / 0.5661 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002891/0.3706, allocations: 171.2 kB / 0.5663 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.856e-05/0.3706, allocations: 32 kB / 0.5663 GB, free: 15.13 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.3708, allocations: 51.98 kB / 0.5664 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.534e-05/0.3709, allocations: 79.69 kB / 0.5664 GB, free: 15 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002153/0.3711, allocations: 159.3 kB / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006315/0.3717, allocations: 450 kB / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.3717, allocations: 3.938 kB / 0.567 GB, free: 14.4 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3718, allocations: 0 / 0.567 GB, free: 14.4 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.3718, allocations: 0 / 0.567 GB, free: 14.4 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001173/0.3729, allocations: 0.595 MB / 0.5676 GB, free: 13.78 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.373, allocations: 12.03 kB / 0.5676 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.835e-05/0.373, allocations: 13.12 kB / 0.5676 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.071e-05/0.3731, allocations: 74.72 kB / 0.5677 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.3734, allocations: 68.62 kB / 0.5678 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004657/0.3739, allocations: 233.7 kB / 0.568 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.3739, allocations: 25.38 kB / 0.568 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.532e-05/0.374, allocations: 47.88 kB / 0.568 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006346/0.3746, allocations: 359.6 kB / 0.5684 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.619e-05/0.3747, allocations: 4 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.3747, allocations: 12 kB / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.3747, allocations: 12 kB / 0.5684 GB, free: 12.87 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000476/0.3752, allocations: 219.8 kB / 0.5686 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.3777, allocations: 1.459 MB / 0.5701 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006274/0.3783, allocations: 295.6 kB / 0.5703 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.3785, allocations: 89.17 kB / 0.5704 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.3785, allocations: 4 kB / 0.5704 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/0.3785, allocations: 50.48 kB / 0.5705 GB, free: 10.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.334e-06/0.3785, allocations: 0 / 0.5705 GB, free: 10.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007392/0.3793, allocations: 265.9 kB / 0.5707 GB, free: 10.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.3794, allocations: 195.8 kB / 0.5709 GB, free: 10.08 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002847/0.3797, allocations: 233.9 kB / 0.5711 GB, free: 9.848 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.3797, allocations: 29.7 kB / 0.5712 GB, free: 9.812 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.3799, allocations: 228.3 kB / 0.5714 GB, free: 9.586 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.38, allocations: 107.1 kB / 0.5715 GB, free: 9.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.3801, allocations: 78.08 kB / 0.5716 GB, free: 9.395 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.3803, allocations: 346.9 kB / 0.5719 GB, free: 9.047 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.3805, allocations: 80.83 kB / 0.572 GB, free: 8.969 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003508/0.3809, allocations: 249.7 kB / 0.5722 GB, free: 8.652 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005989/0.3815, allocations: 361.1 kB / 0.5725 GB, free: 8.223 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.3815, allocations: 4 kB / 0.5726 GB, free: 8.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007491/0.3822, allocations: 385.6 kB / 0.5729 GB, free: 7.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.3823, allocations: 8 kB / 0.5729 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.3823, allocations: 8 kB / 0.5729 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.946e-05/0.3823, allocations: 8.094 kB / 0.5729 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003967/0.3827, allocations: 103.8 kB / 0.573 GB, free: 7.711 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.472e-05/0.3827, allocations: 15.92 kB / 0.5731 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002701/0.383, allocations: 47.72 kB / 0.5731 GB, free: 7.648 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.458e-05/0.383, allocations: 16 kB / 0.5731 GB, free: 7.633 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0002386/0.3833, allocations: 165.5 kB / 0.5733 GB, free: 7.461 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.3835, allocations: 39.86 kB / 0.5733 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002381/0.3837, allocations: 91.39 kB / 0.5734 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/0.3837, allocations: 4 kB / 0.5734 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.3837, allocations: 0 / 0.5734 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.3837, allocations: 4 kB / 0.5734 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008117/0.3845, allocations: 300.4 kB / 0.5737 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.3846, allocations: 0 / 0.5737 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004189/0.385, allocations: 83.89 kB / 0.5738 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.385, allocations: 4 kB / 0.5738 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/0.385, allocations: 8 kB / 0.5738 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.385, allocations: 4 kB / 0.5738 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.385, allocations: 4 kB / 0.5738 GB, free: 6.879 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000784/0.3858, allocations: 0.7702 MB / 0.5745 GB, free: 6.086 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.932e-05/0.3859, allocations: 27.8 kB / 0.5746 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.469e-05/0.3859, allocations: 8 kB / 0.5746 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/0.3862, allocations: 11.98 kB / 0.5746 GB, free: 6.039 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.299e-05/0.3863, allocations: 27.84 kB / 0.5746 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.3863, allocations: 11.94 kB / 0.5746 GB, free: 6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001646/0.3864, allocations: 169.2 kB / 0.5748 GB, free: 5.832 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3864, allocations: 0 / 0.5748 GB, free: 5.832 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006273/0.3871, allocations: 107.8 kB / 0.5749 GB, free: 5.727 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * 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.001164/0.3882, allocations: 1.296 MB / 0.5762 GB, free: 4.402 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000549/0.3888, allocations: 229.8 kB / 0.5764 GB, free: 4.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3888, allocations: 4.125 kB / 0.5764 GB, free: 4.176 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.389, allocations: 87.84 kB / 0.5765 GB, free: 4.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009113/0.3899, allocations: 80.73 kB / 0.5765 GB, free: 4.016 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006092/0.396, allocations: 4.089 MB / 0.5805 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.3962, allocations: 186.5 kB / 0.5807 GB, free: 15.47 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001679/0.3964, allocations: 30.97 kB / 0.5807 GB, free: 15.44 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002874/0.3967, allocations: 115.4 kB / 0.5809 GB, free: 15.33 MB / 430.1 MB Notification: Performance of SimCode: time 1.343e-06/0.3967, allocations: 0 / 0.5809 GB, free: 15.33 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03236/0.4291, allocations: 6.938 MB / 0.5876 GB, free: 8.609 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.2, allocations: 25.05 kB / 0.5877 GB, free: 8.59 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.494011258939281]