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.00175/0.00175, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002146/0.002146, allocations: 213 kB / 23.72 MB, free: 4.531 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.477/1.477, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.242/0.242, allocations: 46.96 MB / 360.9 MB, free: 4.043 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.002017/0.002017, allocations: 71.89 kB / 0.4961 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3206, allocations: 66.04 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004531/0.3252, allocations: 2.821 MB / 0.5633 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.3272, allocations: 1.009 MB / 0.5643 GB, free: 408 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.3274, allocations: 11.94 kB / 0.5643 GB, free: 396 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.3276, allocations: 59.31 kB / 0.5644 GB, free: 336 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002402/0.3278, allocations: 126.9 kB / 0.5645 GB, free: 208 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005266/0.3284, allocations: 167.6 kB / 0.5647 GB, free: 40 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005553/0.3289, allocations: 457.8 kB / 0.5651 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.3291, allocations: 93.69 kB / 0.5652 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.3293, allocations: 167.4 kB / 0.5653 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002404/0.3296, allocations: 179.1 kB / 0.5655 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.771e-05/0.3296, allocations: 32 kB / 0.5655 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.3298, allocations: 55.97 kB / 0.5656 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.361e-05/0.3298, allocations: 75.7 kB / 0.5657 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.33, allocations: 159.3 kB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005317/0.3305, allocations: 450.1 kB / 0.5663 GB, free: 14.39 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3305, allocations: 0 / 0.5663 GB, free: 14.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3305, allocations: 0 / 0.5663 GB, free: 14.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.3306, allocations: 0 / 0.5663 GB, free: 14.39 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.001083/0.3316, allocations: 0.5949 MB / 0.5668 GB, free: 13.77 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.3317, allocations: 8.031 kB / 0.5668 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.132e-05/0.3318, allocations: 70.72 kB / 0.5669 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003064/0.3321, allocations: 64.64 kB / 0.567 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.3325, allocations: 237.6 kB / 0.5672 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.833e-05/0.3325, allocations: 29.38 kB / 0.5672 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.038e-05/0.3326, allocations: 44.08 kB / 0.5673 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006541/0.3333, allocations: 363.6 kB / 0.5676 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.3333, allocations: 3.984 kB / 0.5676 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.495e-05/0.3333, allocations: 16 kB / 0.5676 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.3333, allocations: 12 kB / 0.5676 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000471/0.3338, allocations: 215.8 kB / 0.5679 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/0.3362, allocations: 1.459 MB / 0.5693 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006129/0.3368, allocations: 291.6 kB / 0.5696 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.337, allocations: 93.16 kB / 0.5696 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.337, allocations: 4 kB / 0.5696 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.3371, allocations: 46.5 kB / 0.5697 GB, free: 10.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.194e-06/0.3371, allocations: 4 kB / 0.5697 GB, free: 10.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.000709/0.3378, allocations: 281.3 kB / 0.57 GB, free: 10.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.3379, allocations: 187.9 kB / 0.5701 GB, free: 10.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000272/0.3382, allocations: 245.8 kB / 0.5704 GB, free: 9.836 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.521e-05/0.3382, allocations: 29.7 kB / 0.5704 GB, free: 9.801 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.3384, allocations: 212.3 kB / 0.5706 GB, free: 9.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.3385, allocations: 115 kB / 0.5707 GB, free: 9.477 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3386, allocations: 70.14 kB / 0.5708 GB, free: 9.398 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.3388, allocations: 350.9 kB / 0.5711 GB, free: 9.047 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.339, allocations: 84.83 kB / 0.5712 GB, free: 8.965 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/0.3393, allocations: 245.7 kB / 0.5714 GB, free: 8.652 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005511/0.3398, allocations: 365 kB / 0.5718 GB, free: 8.219 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.3398, allocations: 8 kB / 0.5718 GB, free: 8.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006855/0.3405, allocations: 377.7 kB / 0.5722 GB, free: 7.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.3406, allocations: 8 kB / 0.5722 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.3406, allocations: 12.06 kB / 0.5722 GB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.3406, allocations: 8 kB / 0.5722 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000419/0.341, allocations: 103.8 kB / 0.5723 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.81e-05/0.341, allocations: 11.94 kB / 0.5723 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000258/0.3413, allocations: 47.66 kB / 0.5723 GB, free: 7.648 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.3413, allocations: 20 kB / 0.5724 GB, free: 7.629 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.0001944/0.3415, allocations: 161.6 kB / 0.5725 GB, free: 7.461 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.3417, allocations: 31.81 kB / 0.5725 GB, free: 7.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000205/0.3419, allocations: 95.41 kB / 0.5726 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.3419, allocations: 4 kB / 0.5726 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3419, allocations: 4 kB / 0.5726 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3419, allocations: 0 / 0.5726 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007347/0.3426, allocations: 300.4 kB / 0.5729 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.3426, allocations: 3.984 kB / 0.5729 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004278/0.3431, allocations: 79.91 kB / 0.573 GB, free: 6.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.3431, allocations: 4 kB / 0.573 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.3431, allocations: 11.98 kB / 0.573 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.3431, allocations: 0 / 0.573 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/0.3431, allocations: 11.94 kB / 0.573 GB, free: 6.875 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008469/0.3439, allocations: 0.7625 MB / 0.5738 GB, free: 6.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.536e-05/0.344, allocations: 36.5 kB / 0.5738 GB, free: 6.055 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.724e-05/0.344, allocations: 8 kB / 0.5738 GB, free: 6.047 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003259/0.3444, allocations: 11.94 kB / 0.5738 GB, free: 6.035 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/0.3444, allocations: 27.89 kB / 0.5739 GB, free: 6.008 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.3444, allocations: 11.94 kB / 0.5739 GB, free: 5.996 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001809/0.3446, allocations: 165.3 kB / 0.574 GB, free: 5.832 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3446, allocations: 3.938 kB / 0.574 GB, free: 5.828 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006523/0.3453, allocations: 103.8 kB / 0.5741 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.001435/0.3467, allocations: 1.307 MB / 0.5754 GB, free: 4.391 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005154/0.3472, allocations: 226.2 kB / 0.5756 GB, free: 4.172 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3472, allocations: 4.062 kB / 0.5756 GB, free: 4.168 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001884/0.3474, allocations: 91.83 kB / 0.5757 GB, free: 4.078 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008912/0.3483, allocations: 74.61 kB / 0.5758 GB, free: 4.012 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005375/0.3537, allocations: 4.077 MB / 0.5798 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.3539, allocations: 190.5 kB / 0.5799 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001696/0.3541, allocations: 38.95 kB / 0.58 GB, free: 15.44 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.3543, allocations: 107.4 kB / 0.5801 GB, free: 15.33 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3543, allocations: 0 / 0.5801 GB, free: 15.33 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03669/0.391, allocations: 7.304 MB / 0.5872 GB, free: 8.227 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.64, allocations: 8.062 kB / 0.5872 GB, free: 8.219 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.757042968994938]