Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001093, allocations: 107.6 kB / 17.21 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002075/0.002075, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241.8 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2055/0.2055, allocations: 44.18 MB / 336.1 MB, free: 3.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 67.17 kB / 407.8 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1313, allocations: 60.83 MB / 468.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.005518/0.1369, allocations: 2.653 MB / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.139, allocations: 0.635 MB / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004197/0.1394, allocations: 11.94 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002809/0.1397, allocations: 31.7 kB / 472 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003517/0.1402, allocations: 75.39 kB / 472 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.1406, allocations: 71.92 kB / 472.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005955/0.1412, allocations: 326.5 kB / 472.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002529/0.1414, allocations: 65.83 kB / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003389/0.1418, allocations: 115.5 kB / 472.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002797/0.1421, allocations: 127.4 kB / 472.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.755e-05/0.1421, allocations: 16 kB / 472.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.254e-05/0.1422, allocations: 12 kB / 472.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.84e-05/0.1423, allocations: 43.78 kB / 472.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001784/0.1425, allocations: 147.2 kB / 472.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.1428, allocations: 275.2 kB / 473.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1428, allocations: 4 kB / 473.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1429, allocations: 4 kB / 473.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.1429, allocations: 0 / 473.2 MB, free: 10.16 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001116/0.144, allocations: 0.5807 MB / 473.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.1441, allocations: 8.031 kB / 473.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.511e-05/0.1442, allocations: 62.72 kB / 473.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.304e-05/0.1443, allocations: 32.56 kB / 473.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003822/0.1446, allocations: 264.7 kB / 474.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.1447, allocations: 20.88 kB / 474.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.953e-05/0.1448, allocations: 40.22 kB / 474.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005446/0.1453, allocations: 282.1 kB / 474.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.13e-05/0.1453, allocations: 7.984 kB / 474.5 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.1454, allocations: 12 kB / 474.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1454, allocations: 7.938 kB / 474.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004489/0.1459, allocations: 175.8 kB / 474.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001925/0.1478, allocations: 1.313 MB / 476 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004428/0.1482, allocations: 254.3 kB / 476.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/0.1485, allocations: 99.39 kB / 476.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.632e-05/0.1485, allocations: 4 kB / 476.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.1486, allocations: 42.69 kB / 476.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.775e-06/0.1486, allocations: 0 / 476.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002796/0.1514, allocations: 1.56 MB / 477.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.368e-05/0.1515, allocations: 136.5 kB / 478.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.1517, allocations: 222.2 kB / 478.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.1517, allocations: 29.7 kB / 478.3 MB, free: 4.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.1518, allocations: 180.2 kB / 478.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.974e-05/0.1519, allocations: 122.3 kB / 478.6 MB, free: 4.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.152, allocations: 66.14 kB / 478.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1522, allocations: 342.8 kB / 479 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.1524, allocations: 96.81 kB / 479.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003383/0.1528, allocations: 241.4 kB / 479.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006128/0.1534, allocations: 369 kB / 479.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.1534, allocations: 4 kB / 479.7 MB, free: 2.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007787/0.1542, allocations: 400.7 kB / 480.1 MB, free: 2.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.1542, allocations: 4 kB / 480.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.1542, allocations: 8 kB / 480.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.1543, allocations: 4 kB / 480.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004034/0.1547, allocations: 99.88 kB / 480.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.1547, allocations: 11.94 kB / 480.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.1549, allocations: 28.59 kB / 480.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-05/0.155, allocations: 16 kB / 480.3 MB, free: 2.402 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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.0001797/0.1552, allocations: 153.7 kB / 480.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.1553, allocations: 31.72 kB / 480.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.961e-05/0.1554, allocations: 33.7 kB / 480.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1554, allocations: 7.938 kB / 480.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.1554, allocations: 0 / 480.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.1554, allocations: 7.984 kB / 480.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/0.1571, allocations: 0.9777 MB / 481.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1571, allocations: 4 kB / 481.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003921/0.1575, allocations: 75.89 kB / 481.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.1575, allocations: 4.281 kB / 481.6 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.993e-05/0.1575, allocations: 15.92 kB / 481.6 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.1575, allocations: 8.062 kB / 481.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.1575, allocations: 7.875 kB / 481.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.1586, allocations: 0.7295 MB / 482.3 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.57e-05/0.1587, allocations: 96.83 kB / 482.4 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.1587, allocations: 15.94 kB / 482.4 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.159, allocations: 19.98 kB / 482.5 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.465e-05/0.1591, allocations: 35.89 kB / 482.5 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.1591, allocations: 4 kB / 482.5 MB, free: 72 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001635/0.1593, allocations: 160.5 kB / 482.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1593, allocations: 0 / 482.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005323/0.1598, allocations: 68 kB / 482.7 MB, free: 15.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.00128/0.1611, allocations: 1.266 MB / 484 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006335/0.1618, allocations: 269.2 kB / 484.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.1618, allocations: 8.062 kB / 484.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003158/0.1621, allocations: 132.1 kB / 484.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007244/0.1629, allocations: 39.8 kB / 484.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004692/0.1676, allocations: 3.595 MB / 488 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.168, allocations: 0.7722 MB / 488.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001591/0.1681, allocations: 34.89 kB / 488.8 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.1683, allocations: 95.41 kB / 488.9 MB, free: 9.359 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1683, allocations: 0 / 488.9 MB, free: 9.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.1864, allocations: 4.902 MB / 493.8 MB, free: 4.547 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/0.1866, allocations: 198.1 kB / 494 MB, free: 4.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.045, allocations: 0 / 494 MB, free: 4.281 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches