Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001347, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2303/0.2303, allocations: 46.09 MB / 344.1 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 73.34 kB / 417.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1287, allocations: 62.46 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003863/0.1326, allocations: 2.628 MB / 482.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001403/0.134, allocations: 0.7245 MB / 483.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002776/0.1343, allocations: 7.938 kB / 483.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001754/0.1345, allocations: 43.52 kB / 483.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002459/0.1348, allocations: 87.2 kB / 483.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.1351, allocations: 103.8 kB / 483.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003023/0.1354, allocations: 330.6 kB / 484 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.1356, allocations: 77.94 kB / 484.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.1358, allocations: 131.6 kB / 484.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.1359, allocations: 135.3 kB / 484.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.481e-05/0.136, allocations: 20 kB / 484.4 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.839e-05/0.1361, allocations: 35.98 kB / 484.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.155e-05/0.1361, allocations: 55.77 kB / 484.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.1362, allocations: 143.2 kB / 484.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.1365, allocations: 303.1 kB / 484.9 MB, free: 404 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1365, allocations: 7.984 kB / 484.9 MB, free: 396 kB / 350.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1365, allocations: 0 / 484.9 MB, free: 396 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.1365, allocations: 0 / 484.9 MB, free: 396 kB / 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.0007687/0.1373, allocations: 0.5885 MB / 485.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.1373, allocations: 12.03 kB / 485.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.371e-05/0.1374, allocations: 66.66 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002147/0.1376, allocations: 44.55 kB / 485.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.1379, allocations: 276.7 kB / 485.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.1379, allocations: 16.94 kB / 485.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.802e-05/0.138, allocations: 24.38 kB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004531/0.1384, allocations: 286 kB / 486.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.1385, allocations: 11.91 kB / 486.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.1385, allocations: 8 kB / 486.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.1385, allocations: 8 kB / 486.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004193/0.1389, allocations: 183.8 kB / 486.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.1405, allocations: 1.317 MB / 487.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.1409, allocations: 250.5 kB / 488 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/0.1411, allocations: 99.39 kB / 488.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.1412, allocations: 4 kB / 488.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.1412, allocations: 38.56 kB / 488.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.503e-06/0.1412, allocations: 0 / 488.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002483/0.1437, allocations: 1.569 MB / 489.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.717e-05/0.1438, allocations: 144.5 kB / 489.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.144, allocations: 224.9 kB / 490.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.144, allocations: 33.7 kB / 490.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.623e-05/0.1441, allocations: 176.2 kB / 490.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.028e-05/0.1442, allocations: 122.3 kB / 490.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.108e-05/0.1443, allocations: 66.05 kB / 490.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1444, allocations: 342.8 kB / 490.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.1446, allocations: 100.8 kB / 490.9 MB, free: 9.871 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003276/0.145, allocations: 235.9 kB / 491.1 MB, free: 9.578 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006113/0.1456, allocations: 369 kB / 491.5 MB, free: 9.156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1456, allocations: 0 / 491.5 MB, free: 9.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007432/0.1464, allocations: 388.8 kB / 491.9 MB, free: 8.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.1464, allocations: 8.406 kB / 491.9 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.1464, allocations: 8 kB / 491.9 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.1464, allocations: 8 kB / 491.9 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003735/0.1468, allocations: 103.8 kB / 492 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.1468, allocations: 7.984 kB / 492 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/0.147, allocations: 28.2 kB / 492 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.1471, allocations: 16 kB / 492 MB, free: 8.594 MB / 366.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.0001333/0.1472, allocations: 157.6 kB / 492.2 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.1473, allocations: 31.66 kB / 492.2 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.191e-05/0.1474, allocations: 37.7 kB / 492.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.1474, allocations: 8 kB / 492.3 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1474, allocations: 192 / 492.3 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1474, allocations: 7.984 kB / 492.3 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001369/0.1488, allocations: 0.9854 MB / 493.3 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1488, allocations: 4.062 kB / 493.3 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003461/0.1492, allocations: 79.88 kB / 493.3 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.1492, allocations: 4 kB / 493.3 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.318e-05/0.1492, allocations: 11.94 kB / 493.4 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.1492, allocations: 4 kB / 493.4 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1492, allocations: 0 / 493.4 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009401/0.1502, allocations: 0.7251 MB / 494.1 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.872e-05/0.1503, allocations: 100.7 kB / 494.2 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.813e-05/0.1503, allocations: 12.23 kB / 494.2 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002842/0.1506, allocations: 23.97 kB / 494.2 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.345e-05/0.1507, allocations: 23.97 kB / 494.2 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.1507, allocations: 11.98 kB / 494.3 MB, free: 6.258 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001439/0.1508, allocations: 164.4 kB / 494.4 MB, free: 6.102 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1509, allocations: 0 / 494.4 MB, free: 6.102 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004782/0.1513, allocations: 68 kB / 494.5 MB, free: 6.035 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.001232/0.1526, allocations: 1.263 MB / 495.7 MB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006385/0.1532, allocations: 300.3 kB / 496 MB, free: 4.445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1532, allocations: 0 / 496 MB, free: 4.445 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002846/0.1535, allocations: 129.2 kB / 496.2 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006723/0.1542, allocations: 49.59 kB / 496.2 MB, free: 4.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004401/0.1586, allocations: 3.497 MB / 499.7 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.1591, allocations: 0.7758 MB / 0.4888 GB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001795/0.1593, allocations: 34.95 kB / 0.4888 GB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001612/0.1595, allocations: 95.34 kB / 0.4889 GB, free: 15.62 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1595, allocations: 0 / 0.4889 GB, free: 15.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02574/0.1853, allocations: 5.261 MB / 0.494 GB, free: 10.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.19, allocations: 11.89 kB / 0.494 GB, free: 10.41 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches