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.001331/0.001331, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001441/0.001441, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.483/1.483, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.2668/0.2668, allocations: 46.94 MB / 361.7 MB, free: 4.262 MB / 286.1 MB " [Timeout remaining time 179] 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.002088/0.002088, allocations: 71.89 kB / 0.4969 GB, free: 7.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3253, allocations: 66.03 MB / 0.5614 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004785/0.3301, allocations: 3.066 MB / 0.5644 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.3322, allocations: 1.083 MB / 0.5654 GB, free: 300 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.3324, allocations: 15.88 kB / 0.5655 GB, free: 284 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.3326, allocations: 59.39 kB / 0.5655 GB, free: 224 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002397/0.3329, allocations: 126.9 kB / 0.5656 GB, free: 96 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000554/0.3334, allocations: 171.5 kB / 0.5658 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005635/0.334, allocations: 461.8 kB / 0.5662 GB, free: 15.47 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.3342, allocations: 81.97 kB / 0.5663 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.3344, allocations: 167.4 kB / 0.5665 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002608/0.3347, allocations: 183.2 kB / 0.5667 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.981e-05/0.3347, allocations: 28 kB / 0.5667 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001717/0.3349, allocations: 51.98 kB / 0.5667 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.582e-05/0.335, allocations: 79.69 kB / 0.5668 GB, free: 14.89 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001951/0.3352, allocations: 187.1 kB / 0.567 GB, free: 14.7 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005507/0.3357, allocations: 442.2 kB / 0.5674 GB, free: 14.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3357, allocations: 0 / 0.5674 GB, free: 14.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3357, allocations: 0 / 0.5674 GB, free: 14.27 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.3357, allocations: 4 kB / 0.5674 GB, free: 14.27 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.001053/0.3368, allocations: 0.5988 MB / 0.568 GB, free: 13.64 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/0.3369, allocations: 8.031 kB / 0.568 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.201e-05/0.3369, allocations: 9.188 kB / 0.568 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.621e-05/0.337, allocations: 74.72 kB / 0.5681 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002934/0.3372, allocations: 68.64 kB / 0.5682 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.3377, allocations: 233.6 kB / 0.5684 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.41e-05/0.3377, allocations: 29.38 kB / 0.5684 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.871e-05/0.3378, allocations: 43.89 kB / 0.5684 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006271/0.3384, allocations: 363.6 kB / 0.5688 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.457e-05/0.3384, allocations: 3.984 kB / 0.5688 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.3385, allocations: 19.98 kB / 0.5688 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3385, allocations: 8 kB / 0.5688 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005039/0.339, allocations: 227.7 kB / 0.569 GB, free: 12.51 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.3413, allocations: 1.514 MB / 0.5705 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006195/0.3419, allocations: 291.7 kB / 0.5708 GB, free: 10.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.3421, allocations: 93.11 kB / 0.5709 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.3421, allocations: 19.91 kB / 0.5709 GB, free: 10.42 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/0.3422, allocations: 38.56 kB / 0.5709 GB, free: 10.38 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.943e-06/0.3422, allocations: 0 / 0.5709 GB, free: 10.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007738/0.343, allocations: 273.3 kB / 0.5712 GB, free: 10.1 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.3431, allocations: 188 kB / 0.5714 GB, free: 9.875 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.3433, allocations: 241.9 kB / 0.5716 GB, free: 9.633 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.3434, allocations: 29.7 kB / 0.5716 GB, free: 9.598 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.3435, allocations: 216.2 kB / 0.5718 GB, free: 9.383 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.351e-05/0.3436, allocations: 111.1 kB / 0.572 GB, free: 9.273 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.3438, allocations: 78.08 kB / 0.572 GB, free: 9.188 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3439, allocations: 338.8 kB / 0.5723 GB, free: 8.848 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.3441, allocations: 88.83 kB / 0.5724 GB, free: 8.762 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003294/0.3445, allocations: 253.7 kB / 0.5727 GB, free: 8.441 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005412/0.345, allocations: 365.1 kB / 0.573 GB, free: 8.008 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.345, allocations: 0 / 0.573 GB, free: 8.008 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006909/0.3457, allocations: 381.3 kB / 0.5734 GB, free: 7.629 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.3457, allocations: 11.94 kB / 0.5734 GB, free: 7.617 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3457, allocations: 4.25 kB / 0.5734 GB, free: 7.613 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.3458, allocations: 8 kB / 0.5734 GB, free: 7.605 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003795/0.3461, allocations: 115.8 kB / 0.5735 GB, free: 7.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.3462, allocations: 11.94 kB / 0.5735 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.3464, allocations: 35.73 kB / 0.5736 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.3464, allocations: 20 kB / 0.5736 GB, free: 7.426 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.0002138/0.3466, allocations: 169.8 kB / 0.5737 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.3468, allocations: 31.81 kB / 0.5738 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002064/0.347, allocations: 91.48 kB / 0.5739 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.347, allocations: 7.938 kB / 0.5739 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.347, allocations: 0 / 0.5739 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.347, allocations: 7.938 kB / 0.5739 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007226/0.3477, allocations: 316.4 kB / 0.5742 GB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3477, allocations: 0 / 0.5742 GB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000427/0.3481, allocations: 79.95 kB / 0.5743 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.253e-06/0.3482, allocations: 8 kB / 0.5743 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.3482, allocations: 8 kB / 0.5743 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.3482, allocations: 7.938 kB / 0.5743 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3482, allocations: 0 / 0.5743 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008239/0.349, allocations: 0.7742 MB / 0.575 GB, free: 5.855 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.098e-05/0.3491, allocations: 27.78 kB / 0.5751 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.633e-05/0.3491, allocations: 11.94 kB / 0.5751 GB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003209/0.3494, allocations: 8 kB / 0.5751 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.998e-05/0.3495, allocations: 24.66 kB / 0.5751 GB, free: 5.785 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.3495, allocations: 11.98 kB / 0.5751 GB, free: 5.773 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.3497, allocations: 169.2 kB / 0.5753 GB, free: 5.605 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3497, allocations: 4 kB / 0.5753 GB, free: 5.602 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006595/0.3504, allocations: 99.78 kB / 0.5754 GB, free: 5.504 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.001178/0.3515, allocations: 1.296 MB / 0.5766 GB, free: 4.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00051/0.352, allocations: 230 kB / 0.5769 GB, free: 3.957 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.352, allocations: 0 / 0.5769 GB, free: 3.957 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.3522, allocations: 100.1 kB / 0.577 GB, free: 3.859 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009249/0.3532, allocations: 82.78 kB / 0.577 GB, free: 3.785 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005477/0.3586, allocations: 4.085 MB / 0.581 GB, free: 15.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/0.3591, allocations: 0.795 MB / 0.5818 GB, free: 14.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000166/0.3593, allocations: 42.94 kB / 0.5818 GB, free: 14.59 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.3595, allocations: 107.4 kB / 0.5819 GB, free: 14.48 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3595, allocations: 0 / 0.5819 GB, free: 14.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03103/0.3905, allocations: 6.816 MB / 0.5886 GB, free: 7.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.21, allocations: 7.578 kB / 0.5886 GB, free: 7.836 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.58995293197222]