Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.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.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001509/0.001509, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001893/0.001893, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, 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.2404/0.2404, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 78.97 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1295, allocations: 62.43 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004571/0.1341, allocations: 2.855 MB / 483 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.1358, allocations: 0.7984 MB / 483.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003279/0.1361, allocations: 11.94 kB / 483.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002887/0.1365, allocations: 67.31 kB / 483.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004266/0.1369, allocations: 130.8 kB / 484 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004722/0.1374, allocations: 115.8 kB / 484.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005627/0.138, allocations: 442.4 kB / 484.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003236/0.1383, allocations: 194.1 kB / 484.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003056/0.1387, allocations: 171.4 kB / 484.9 MB, free: 424 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002467/0.1389, allocations: 187.2 kB / 485.1 MB, free: 236 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.777e-05/0.139, allocations: 39.94 kB / 485.1 MB, free: 196 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.1391, allocations: 48 kB / 485.1 MB, free: 148 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.066e-05/0.1392, allocations: 87.67 kB / 485.2 MB, free: 60 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002154/0.1394, allocations: 199.1 kB / 485.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004173/0.1398, allocations: 446.5 kB / 485.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1398, allocations: 4 kB / 485.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1398, allocations: 0 / 485.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.1399, allocations: 0 / 485.9 MB, free: 15.42 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0009406/0.1408, allocations: 0.6783 MB / 486.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.1408, allocations: 8.031 kB / 486.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.867e-05/0.1409, allocations: 78.7 kB / 486.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003503/0.1413, allocations: 68.44 kB / 486.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/0.1417, allocations: 299.5 kB / 487 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.494e-05/0.1417, allocations: 29.38 kB / 487 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-05/0.1418, allocations: 40.38 kB / 487.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006608/0.1425, allocations: 381.2 kB / 487.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.767e-05/0.1425, allocations: 11.91 kB / 487.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.1425, allocations: 16 kB / 487.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.1426, allocations: 8 kB / 487.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000507/0.1431, allocations: 243.8 kB / 487.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001718/0.1448, allocations: 1.113 MB / 488.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005903/0.1454, allocations: 347.4 kB / 489.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002907/0.1457, allocations: 175.2 kB / 489.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.1457, allocations: 12 kB / 489.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.1458, allocations: 42.5 kB / 489.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.845e-06/0.1458, allocations: 0 / 489.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.004063/0.1499, allocations: 2.446 MB / 491.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.602e-05/0.15, allocations: 110.8 kB / 491.9 MB, free: 8.852 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.1503, allocations: 242.7 kB / 492.2 MB, free: 8.605 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.871e-05/0.1503, allocations: 37.7 kB / 492.2 MB, free: 8.562 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.1505, allocations: 184.6 kB / 492.4 MB, free: 8.379 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.1507, allocations: 193 kB / 492.6 MB, free: 8.188 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.1508, allocations: 90.25 kB / 492.7 MB, free: 8.094 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.151, allocations: 350.7 kB / 493 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002588/0.1513, allocations: 129.1 kB / 493.1 MB, free: 7.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004605/0.1517, allocations: 235.7 kB / 493.4 MB, free: 7.348 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007557/0.1525, allocations: 402 kB / 493.8 MB, free: 6.918 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1525, allocations: 4 kB / 493.8 MB, free: 6.914 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001006/0.1535, allocations: 0.5536 MB / 494.3 MB, free: 6.344 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.1536, allocations: 6.5 kB / 494.3 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.1536, allocations: 12.08 kB / 494.3 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003563/0.1539, allocations: 126.6 kB / 494.5 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000357/0.1543, allocations: 95.88 kB / 494.5 MB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004487/0.1588, allocations: 5.218 MB / 499.8 MB, free: 484 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.1591, allocations: 23.92 kB / 499.8 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.1591, allocations: 20 kB / 499.8 MB, free: 440 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002088/0.1593, allocations: 169.1 kB / 500 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.1595, allocations: 35.53 kB / 0.4883 GB, free: 228 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.106e-05/0.1596, allocations: 54.11 kB / 0.4883 GB, free: 176 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.1596, allocations: 4 kB / 0.4883 GB, free: 172 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.1596, allocations: 11.94 kB / 0.4884 GB, free: 160 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.1596, allocations: 3.984 kB / 0.4884 GB, free: 156 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.1616, allocations: 1.327 MB / 0.4897 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1616, allocations: 0 / 0.4897 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004065/0.162, allocations: 99.98 kB / 0.4898 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000273/0.1623, allocations: 102.4 kB / 0.4899 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.276e-05/0.1623, allocations: 15.98 kB / 0.4899 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003312/0.1657, allocations: 4.419 MB / 0.4942 GB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1657, allocations: 4.062 kB / 0.4942 GB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.167, allocations: 0.9231 MB / 0.4951 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.1671, allocations: 108.6 kB / 0.4952 GB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.194e-05/0.1672, allocations: 12.06 kB / 0.4952 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.1674, allocations: 27.86 kB / 0.4952 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.825e-05/0.1675, allocations: 47.88 kB / 0.4953 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.5e-05/0.1676, allocations: 16 kB / 0.4953 GB, free: 8.496 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001607/0.1677, allocations: 174 kB / 0.4955 GB, free: 8.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1678, allocations: 4 kB / 0.4955 GB, free: 8.316 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006977/0.1685, allocations: 120 kB / 0.4956 GB, free: 8.199 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001586/0.1701, allocations: 1.472 MB / 0.497 GB, free: 6.684 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.1714, allocations: 0.8071 MB / 0.4978 GB, free: 5.836 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1714, allocations: 0 / 0.4978 GB, free: 5.836 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007176/0.1721, allocations: 0.5663 MB / 0.4984 GB, free: 5.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007136/0.1729, allocations: 71.78 kB / 0.4984 GB, free: 5.164 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006036/0.1789, allocations: 4.201 MB / 0.5025 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2184/0.3973, allocations: 0.8158 MB / 0.5033 GB, free: 40.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002716/0.3977, allocations: 35.03 kB / 0.5034 GB, free: 40.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.3979, allocations: 132.5 kB / 0.5035 GB, free: 40.14 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3979, allocations: 0 / 0.5035 GB, free: 40.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03713/0.435, allocations: 8.168 MB / 0.5115 GB, free: 39.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.758/10.19, allocations: 5.406 kB / 0.5115 GB, free: 39.5 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches