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.001811/0.001811, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002382/0.002382, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.2282/0.2282, allocations: 44.91 MB / 358.8 MB, free: 6.266 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",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.00358/0.00358, allocations: 67.91 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3843, allocations: 65.47 MB / 0.557 GB, free: 7.711 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004298/0.3886, allocations: 2.828 MB / 0.5598 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.3904, allocations: 1.024 MB / 0.5608 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.3906, allocations: 7.938 kB / 0.5608 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001861/0.3908, allocations: 55.45 kB / 0.5608 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.391, allocations: 107.1 kB / 0.5609 GB, free: 3.879 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004728/0.3915, allocations: 155.5 kB / 0.5611 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000436/0.3919, allocations: 378.2 kB / 0.5614 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.3921, allocations: 63.44 kB / 0.5615 GB, free: 3.289 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.3922, allocations: 139.5 kB / 0.5616 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.3925, allocations: 155.2 kB / 0.5618 GB, free: 3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.206e-05/0.3925, allocations: 28 kB / 0.5618 GB, free: 2.973 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.3926, allocations: 44 kB / 0.5618 GB, free: 2.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.88e-05/0.3927, allocations: 67.77 kB / 0.5619 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.3928, allocations: 167.2 kB / 0.5621 GB, free: 2.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004625/0.3933, allocations: 366.5 kB / 0.5624 GB, free: 2.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3933, allocations: 8 kB / 0.5624 GB, free: 2.332 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3933, allocations: 0 / 0.5624 GB, free: 2.332 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.3933, allocations: 0 / 0.5624 GB, free: 2.332 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.000921/0.3942, allocations: 0.5325 MB / 0.5629 GB, free: 1.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3943, allocations: 15.97 kB / 0.563 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.566e-05/0.3944, allocations: 62.72 kB / 0.563 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003093/0.3947, allocations: 60.67 kB / 0.5631 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.3951, allocations: 214.7 kB / 0.5633 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.3951, allocations: 21.03 kB / 0.5633 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.989e-05/0.3952, allocations: 40.08 kB / 0.5633 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004983/0.3956, allocations: 306.3 kB / 0.5636 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.3957, allocations: 11.95 kB / 0.5636 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.3957, allocations: 15.98 kB / 0.5637 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3957, allocations: 8 kB / 0.5637 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003281/0.396, allocations: 171.8 kB / 0.5638 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002036/0.3981, allocations: 1.288 MB / 0.5651 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000441/0.3985, allocations: 245 kB / 0.5653 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.3987, allocations: 72.33 kB / 0.5654 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.3987, allocations: 4 kB / 0.5654 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.3987, allocations: 42.55 kB / 0.5654 GB, free: 15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.763e-06/0.3987, allocations: 4 kB / 0.5654 GB, free: 15 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005292/0.3993, allocations: 225.2 kB / 0.5657 GB, free: 14.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.3994, allocations: 158.2 kB / 0.5658 GB, free: 14.58 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002304/0.3996, allocations: 220.9 kB / 0.566 GB, free: 14.35 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.3996, allocations: 29.7 kB / 0.566 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.3998, allocations: 196.5 kB / 0.5662 GB, free: 14.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.545e-05/0.3999, allocations: 99.16 kB / 0.5663 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-05/0.4, allocations: 61.83 kB / 0.5664 GB, free: 13.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.4001, allocations: 338.8 kB / 0.5667 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.4002, allocations: 63.97 kB / 0.5668 GB, free: 13.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.4005, allocations: 205.9 kB / 0.567 GB, free: 13.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003727/0.4008, allocations: 297.7 kB / 0.5672 GB, free: 12.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.4008, allocations: 4 kB / 0.5673 GB, free: 12.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005028/0.4014, allocations: 320.9 kB / 0.5676 GB, free: 12.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.4014, allocations: 8 kB / 0.5676 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.4014, allocations: 4 kB / 0.5676 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.4014, allocations: 8.531 kB / 0.5676 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003088/0.4017, allocations: 91.83 kB / 0.5677 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.4017, allocations: 8 kB / 0.5677 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001696/0.4019, allocations: 31.78 kB / 0.5677 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.4019, allocations: 23.94 kB / 0.5677 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.0001529/0.4021, allocations: 149.6 kB / 0.5679 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.4022, allocations: 35.84 kB / 0.5679 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001954/0.4024, allocations: 91.33 kB / 0.568 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.4024, allocations: 4 kB / 0.568 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.4024, allocations: 4 kB / 0.568 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4024, allocations: 0 / 0.568 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006041/0.403, allocations: 292.7 kB / 0.5683 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.403, allocations: 4 kB / 0.5683 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003385/0.4033, allocations: 71.84 kB / 0.5683 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.4033, allocations: 4 kB / 0.5684 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.4034, allocations: 8 kB / 0.5684 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.4034, allocations: 0 / 0.5684 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.4034, allocations: 7.984 kB / 0.5684 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005739/0.4039, allocations: 0.6373 MB / 0.569 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.65e-05/0.404, allocations: 35.72 kB / 0.569 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.404, allocations: 4 kB / 0.569 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.4043, allocations: 4 kB / 0.569 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.4043, allocations: 23.97 kB / 0.5691 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.4043, allocations: 4 kB / 0.5691 GB, free: 10.99 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001407/0.4045, allocations: 156.4 kB / 0.5692 GB, free: 10.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4045, allocations: 0 / 0.5692 GB, free: 10.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005198/0.405, allocations: 83.88 kB / 0.5693 GB, free: 10.76 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.0008583/0.4059, allocations: 1.178 MB / 0.5704 GB, free: 9.551 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003385/0.4062, allocations: 176.7 kB / 0.5706 GB, free: 9.379 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.4062, allocations: 256 / 0.5706 GB, free: 9.379 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.4063, allocations: 84.44 kB / 0.5707 GB, free: 9.297 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008038/0.4071, allocations: 62.33 kB / 0.5707 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004366/0.4115, allocations: 3.581 MB / 0.5742 GB, free: 5.449 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.4119, allocations: 0.7755 MB / 0.575 GB, free: 4.648 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.412, allocations: 30.95 kB / 0.575 GB, free: 4.613 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.4122, allocations: 95.39 kB / 0.5751 GB, free: 4.52 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4122, allocations: 0 / 0.5751 GB, free: 4.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03714/0.4493, allocations: 5.811 MB / 0.5808 GB, free: 14.86 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.9, allocations: 1.688 kB / 0.5808 GB, free: 14.86 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: 14.984156992053613]