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.001677/0.001677, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001486/0.001486, allocations: 216.9 kB / 23.73 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.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2511/0.2511, allocations: 46.96 MB / 360.9 MB, free: 4.004 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 79.86 kB / 0.4961 GB, free: 7.699 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3467, allocations: 66.04 MB / 0.5606 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.006655/0.3534, allocations: 2.824 MB / 0.5633 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00279/0.3562, allocations: 1.005 MB / 0.5643 GB, free: 360 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004366/0.3566, allocations: 15.88 kB / 0.5643 GB, free: 344 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003146/0.3569, allocations: 59.38 kB / 0.5644 GB, free: 284 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000492/0.3574, allocations: 130.9 kB / 0.5645 GB, free: 152 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000972/0.3584, allocations: 167.7 kB / 0.5647 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009576/0.3593, allocations: 461.8 kB / 0.5651 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002798/0.3596, allocations: 69.75 kB / 0.5652 GB, free: 15.46 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000377/0.36, allocations: 175.4 kB / 0.5653 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002991/0.3603, allocations: 151.2 kB / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.223e-05/0.3603, allocations: 32 kB / 0.5655 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.3605, allocations: 55.98 kB / 0.5656 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.475e-05/0.3606, allocations: 75.69 kB / 0.5656 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001776/0.3608, allocations: 159.3 kB / 0.5658 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005899/0.3614, allocations: 446.1 kB / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.3614, allocations: 4 kB / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3614, allocations: 0 / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.3614, allocations: 0 / 0.5662 GB, free: 14.38 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.001082/0.3625, allocations: 0.5988 MB / 0.5668 GB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.3625, allocations: 12.03 kB / 0.5668 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.389e-05/0.3626, allocations: 70.72 kB / 0.5669 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003014/0.3629, allocations: 64.62 kB / 0.567 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005056/0.3634, allocations: 237.6 kB / 0.5672 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.379e-05/0.3634, allocations: 25.38 kB / 0.5672 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.57e-05/0.3635, allocations: 52.08 kB / 0.5673 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006911/0.3642, allocations: 359.6 kB / 0.5676 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.04e-05/0.3642, allocations: 3.938 kB / 0.5676 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/0.3643, allocations: 16 kB / 0.5676 GB, free: 12.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.3643, allocations: 11.98 kB / 0.5676 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004844/0.3648, allocations: 221.4 kB / 0.5678 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002381/0.3672, allocations: 1.452 MB / 0.5693 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006839/0.3678, allocations: 295.6 kB / 0.5695 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.368, allocations: 93.11 kB / 0.5696 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.368, allocations: 4 kB / 0.5696 GB, free: 10.63 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.3681, allocations: 42.55 kB / 0.5697 GB, free: 10.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 3.456e-06/0.3681, allocations: 7.984 kB / 0.5697 GB, free: 10.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007026/0.3688, allocations: 269.5 kB / 0.5699 GB, free: 10.3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/0.3689, allocations: 195.8 kB / 0.5701 GB, free: 10.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.3692, allocations: 241.8 kB / 0.5704 GB, free: 9.824 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.3692, allocations: 33.7 kB / 0.5704 GB, free: 9.785 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000174/0.3694, allocations: 216.4 kB / 0.5706 GB, free: 9.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.333e-05/0.3695, allocations: 111.1 kB / 0.5707 GB, free: 9.461 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.3696, allocations: 74.12 kB / 0.5708 GB, free: 9.379 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.3698, allocations: 342.8 kB / 0.5711 GB, free: 9.035 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.37, allocations: 88.95 kB / 0.5712 GB, free: 8.949 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003214/0.3703, allocations: 241.8 kB / 0.5714 GB, free: 8.641 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005493/0.3708, allocations: 361.1 kB / 0.5718 GB, free: 8.211 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.3708, allocations: 0 / 0.5718 GB, free: 8.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007045/0.3715, allocations: 393.6 kB / 0.5721 GB, free: 7.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.3716, allocations: 8.062 kB / 0.5721 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.3716, allocations: 8 kB / 0.5721 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.3716, allocations: 8 kB / 0.5722 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003654/0.372, allocations: 107.8 kB / 0.5723 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.931e-05/0.372, allocations: 16.05 kB / 0.5723 GB, free: 7.676 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.3722, allocations: 43.67 kB / 0.5723 GB, free: 7.633 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.3722, allocations: 20 kB / 0.5723 GB, free: 7.613 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.0001726/0.3724, allocations: 161.6 kB / 0.5725 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.3725, allocations: 31.81 kB / 0.5725 GB, free: 7.414 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002047/0.3727, allocations: 99.31 kB / 0.5726 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3727, allocations: 4 kB / 0.5726 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.3728, allocations: 4 kB / 0.5726 GB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.3728, allocations: 0 / 0.5726 GB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006908/0.3735, allocations: 300.4 kB / 0.5729 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3735, allocations: 4 kB / 0.5729 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000411/0.3739, allocations: 79.91 kB / 0.573 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.3739, allocations: 3.984 kB / 0.573 GB, free: 6.879 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.3739, allocations: 8 kB / 0.573 GB, free: 6.871 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3739, allocations: 4 kB / 0.573 GB, free: 6.867 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3739, allocations: 4 kB / 0.573 GB, free: 6.863 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000816/0.3747, allocations: 0.7702 MB / 0.5738 GB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.604e-05/0.3748, allocations: 35.75 kB / 0.5738 GB, free: 6.035 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.041e-05/0.3748, allocations: 4 kB / 0.5738 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003164/0.3751, allocations: 15.98 kB / 0.5738 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.723e-05/0.3752, allocations: 23.91 kB / 0.5738 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.656e-05/0.3752, allocations: 8.688 kB / 0.5738 GB, free: 5.984 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001754/0.3754, allocations: 169.2 kB / 0.574 GB, free: 5.816 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3754, allocations: 0 / 0.574 GB, free: 5.816 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006105/0.376, allocations: 99.84 kB / 0.5741 GB, free: 5.719 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.001191/0.3772, allocations: 1.311 MB / 0.5754 GB, free: 4.379 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005006/0.3777, allocations: 221.7 kB / 0.5756 GB, free: 4.164 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3777, allocations: 320 / 0.5756 GB, free: 4.164 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.3779, allocations: 100.1 kB / 0.5757 GB, free: 4.066 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009225/0.3788, allocations: 82.56 kB / 0.5758 GB, free: 3.992 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005598/0.3844, allocations: 4.077 MB / 0.5797 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.3847, allocations: 190.5 kB / 0.5799 GB, free: 15.45 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001808/0.3848, allocations: 34.95 kB / 0.58 GB, free: 15.42 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.385, allocations: 111.4 kB / 0.5801 GB, free: 15.31 MB / 430.1 MB Notification: Performance of SimCode: time 1.052e-06/0.385, allocations: 0 / 0.5801 GB, free: 15.31 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04125/0.4263, allocations: 7.18 MB / 0.5871 GB, free: 8.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.76, allocations: 10.28 kB / 0.5871 GB, free: 8.316 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: 14.803907644934952]