Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001156/0.001156, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 206.4 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.412/1.412, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2277/0.2277, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 79.8 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1258, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.00744/0.1333, allocations: 5.775 MB / 485.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004495/0.1379, allocations: 2.356 MB / 488.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009664/0.1388, allocations: 39.75 kB / 488.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008254/0.1397, allocations: 226 kB / 488.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.1408, allocations: 186.2 kB / 488.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001421/0.1422, allocations: 470.9 kB / 489.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.1436, allocations: 1.099 MB / 490.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000804/0.1444, allocations: 0.6224 MB / 490.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004432/0.1449, allocations: 370.7 kB / 491.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003884/0.1453, allocations: 386.1 kB / 491.6 MB, free: 9.633 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001181/0.1454, allocations: 99.94 kB / 491.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002851/0.1457, allocations: 159.9 kB / 491.9 MB, free: 9.379 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001904/0.1459, allocations: 215.3 kB / 492.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004414/0.1464, allocations: 465.7 kB / 492.5 MB, free: 8.711 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.1475, allocations: 1.246 MB / 493.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1475, allocations: 0 / 493.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1475, allocations: 0 / 493.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.1476, allocations: 0 / 493.8 MB, free: 7.461 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001555/0.1491, allocations: 1.127 MB / 494.9 MB, free: 6.281 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.1492, allocations: 12.03 kB / 494.9 MB, free: 6.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/0.1493, allocations: 147.8 kB / 495.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002852/0.1496, allocations: 107.7 kB / 495.2 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000747/0.1504, allocations: 0.5746 MB / 495.7 MB, free: 5.395 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.841e-05/0.1504, allocations: 66 kB / 495.8 MB, free: 5.332 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.1506, allocations: 92 kB / 495.9 MB, free: 5.242 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.1519, allocations: 0.8814 MB / 496.8 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.778e-05/0.152, allocations: 11.84 kB / 496.8 MB, free: 4.285 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.177e-05/0.1521, allocations: 44 kB / 496.8 MB, free: 4.242 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.1521, allocations: 28 kB / 496.9 MB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009716/0.1531, allocations: 0.519 MB / 497.4 MB, free: 3.695 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003859/0.157, allocations: 3.65 MB / 0.4893 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005533/0.1575, allocations: 224.2 kB / 0.4895 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.1577, allocations: 101.3 kB / 0.4896 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002684/0.158, allocations: 255.3 kB / 0.4898 GB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.158, allocations: 38.5 kB / 0.4899 GB, free: 15.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.863e-06/0.158, allocations: 0 / 0.4899 GB, free: 15.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.002369/0.1604, allocations: 1.283 MB / 0.4911 GB, free: 13.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/0.1605, allocations: 59.34 kB / 0.4912 GB, free: 13.76 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004214/0.1609, allocations: 405.8 kB / 0.4916 GB, free: 13.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.1609, allocations: 37.64 kB / 0.4916 GB, free: 13.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002919/0.1612, allocations: 474 kB / 0.4921 GB, free: 12.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.321e-05/0.1613, allocations: 130.1 kB / 0.4922 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.1615, allocations: 102.2 kB / 0.4923 GB, free: 12.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1616, allocations: 358.8 kB / 0.4926 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.1619, allocations: 117.1 kB / 0.4927 GB, free: 12.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003367/0.1622, allocations: 302.2 kB / 0.493 GB, free: 11.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005876/0.1628, allocations: 467.4 kB / 0.4935 GB, free: 11.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1628, allocations: 0 / 0.4935 GB, free: 11.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007944/0.1636, allocations: 0.5133 MB / 0.494 GB, free: 10.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.1636, allocations: 8 kB / 0.494 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1636, allocations: 4 kB / 0.494 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001819/0.1638, allocations: 40.78 kB / 0.494 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003926/0.1642, allocations: 135.8 kB / 0.4942 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003757/0.1646, allocations: 0.5565 MB / 0.4947 GB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.1648, allocations: 19.98 kB / 0.4947 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.1649, allocations: 24 kB / 0.4947 GB, free: 9.875 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002878/0.1652, allocations: 229.6 kB / 0.495 GB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.06e-05/0.1653, allocations: 55.28 kB / 0.495 GB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006243/0.1659, allocations: 331 kB / 0.4953 GB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.1659, allocations: 4 kB / 0.4953 GB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1659, allocations: 0 / 0.4953 GB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.1659, allocations: 3.984 kB / 0.4953 GB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.1675, allocations: 1.062 MB / 0.4964 GB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1675, allocations: 0 / 0.4964 GB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003644/0.1679, allocations: 79.89 kB / 0.4964 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000164/0.1681, allocations: 36.78 kB / 0.4965 GB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.1681, allocations: 8 kB / 0.4965 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003617/0.1685, allocations: 0.5486 MB / 0.497 GB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.1685, allocations: 4.031 kB / 0.497 GB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008112/0.1693, allocations: 0.5636 MB / 0.4976 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.413e-05/0.1694, allocations: 112.5 kB / 0.4977 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.256e-05/0.1695, allocations: 12 kB / 0.4977 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.1697, allocations: 11.98 kB / 0.4977 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.898e-05/0.1697, allocations: 27.91 kB / 0.4977 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.1698, allocations: 8 kB / 0.4977 GB, free: 6.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003073/0.1701, allocations: 279.1 kB / 0.498 GB, free: 6.344 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1701, allocations: 0 / 0.498 GB, free: 6.344 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000585/0.1707, allocations: 128 kB / 0.4981 GB, free: 6.219 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001155/0.1718, allocations: 1.112 MB / 0.4992 GB, free: 5.059 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007043/0.1726, allocations: 355.7 kB / 0.4996 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1726, allocations: 0 / 0.4996 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.1728, allocations: 137.2 kB / 0.4997 GB, free: 4.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000529/0.1734, allocations: 80.73 kB / 0.4998 GB, free: 4.504 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1966/0.37, allocations: 4.89 MB / 0.5045 GB, free: 40.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005529/0.3706, allocations: 0.9616 MB / 0.5055 GB, free: 39.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003124/0.3709, allocations: 59.53 kB / 0.5055 GB, free: 39.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003142/0.3712, allocations: 297.5 kB / 0.5058 GB, free: 39.86 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3712, allocations: 0 / 0.5058 GB, free: 39.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03106/0.4023, allocations: 9.149 MB / 0.5148 GB, free: 38.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.71, allocations: 6.25 kB / 0.5148 GB, free: 38.28 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches