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.001281/0.00128, allocations: 108.1 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.219/0.219, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001729, allocations: 79.86 kB / 417.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1335, allocations: 62.43 MB / 479.6 MB, free: 8.867 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007846/0.1414, allocations: 5.755 MB / 485.3 MB, free: 3.074 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005182/0.1466, allocations: 2.29 MB / 487.6 MB, free: 0.7773 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.1482, allocations: 39.75 kB / 487.7 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009635/0.1492, allocations: 178.7 kB / 487.8 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009019/0.1502, allocations: 154.8 kB / 488 MB, free: 420 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.1516, allocations: 407.3 kB / 488.4 MB, free: 12 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001812/0.1535, allocations: 1.118 MB / 489.5 MB, free: 14.89 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/0.1546, allocations: 0.6185 MB / 490.1 MB, free: 14.25 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007361/0.1553, allocations: 366.6 kB / 490.5 MB, free: 13.89 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006587/0.156, allocations: 394 kB / 490.9 MB, free: 13.5 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001932/0.1562, allocations: 96 kB / 491 MB, free: 13.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004062/0.1566, allocations: 155.9 kB / 491.1 MB, free: 13.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002221/0.1568, allocations: 223.3 kB / 491.3 MB, free: 13.04 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000575/0.1574, allocations: 465.7 kB / 491.8 MB, free: 12.58 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.1588, allocations: 1.246 MB / 493 MB, free: 11.33 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1588, allocations: 0 / 493 MB, free: 11.33 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1589, allocations: 4 kB / 493 MB, free: 11.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.777e-05/0.1589, allocations: 0 / 493 MB, free: 11.32 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002181/0.1611, allocations: 1.123 MB / 494.2 MB, free: 10.15 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.1612, allocations: 12.03 kB / 494.2 MB, free: 10.14 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001825/0.1614, allocations: 143.8 kB / 494.3 MB, free: 9.992 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003111/0.1617, allocations: 111.7 kB / 494.4 MB, free: 9.883 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008816/0.1626, allocations: 0.5708 MB / 495 MB, free: 9.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/0.1626, allocations: 66 kB / 495.1 MB, free: 9.203 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.1628, allocations: 95.89 kB / 495.2 MB, free: 9.109 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.1644, allocations: 0.8814 MB / 496 MB, free: 8.168 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.985e-05/0.1645, allocations: 15.83 kB / 496.1 MB, free: 8.152 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.787e-05/0.1646, allocations: 40 kB / 496.1 MB, free: 8.113 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.001e-05/0.1646, allocations: 20 kB / 496.1 MB, free: 8.094 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.1657, allocations: 0.5307 MB / 496.6 MB, free: 7.559 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003958/0.1697, allocations: 3.631 MB / 0.4885 GB, free: 3.773 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005734/0.1703, allocations: 228.5 kB / 0.4888 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.1705, allocations: 100.8 kB / 0.4889 GB, free: 3.438 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002919/0.1708, allocations: 255.3 kB / 0.4891 GB, free: 3.133 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/0.1708, allocations: 38.48 kB / 0.4891 GB, free: 3.086 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.344e-06/0.1708, allocations: 0 / 0.4891 GB, free: 3.086 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002531/0.1734, allocations: 1.296 MB / 0.4904 GB, free: 1.695 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.1734, allocations: 59.34 kB / 0.4905 GB, free: 1.625 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004371/0.1739, allocations: 397.8 kB / 0.4908 GB, free: 1.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.1739, allocations: 41.62 kB / 0.4909 GB, free: 1.184 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.1742, allocations: 470.1 kB / 0.4913 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.902e-05/0.1743, allocations: 134.1 kB / 0.4915 GB, free: 0.582 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.1744, allocations: 98.16 kB / 0.4916 GB, free: 492 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1746, allocations: 362.8 kB / 0.4919 GB, free: 120 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.1748, allocations: 113.1 kB / 0.492 GB, free: 8 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.1752, allocations: 310.2 kB / 0.4923 GB, free: 15.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005849/0.1758, allocations: 463.4 kB / 0.4927 GB, free: 15.08 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1758, allocations: 4 kB / 0.4927 GB, free: 15.08 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008752/0.1767, allocations: 0.5018 MB / 0.4932 GB, free: 14.57 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.1767, allocations: 12.03 kB / 0.4932 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.1768, allocations: 8 kB / 0.4933 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002126/0.177, allocations: 40.78 kB / 0.4933 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004158/0.1774, allocations: 131.8 kB / 0.4934 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005085/0.1779, allocations: 0.5563 MB / 0.494 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/0.1782, allocations: 16 kB / 0.494 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/0.1782, allocations: 32.05 kB / 0.494 GB, free: 13.75 MB / 430.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.0003149/0.1786, allocations: 229.7 kB / 0.4942 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.026e-05/0.1787, allocations: 51.36 kB / 0.4943 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006513/0.1793, allocations: 326.9 kB / 0.4946 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.1793, allocations: 8 kB / 0.4946 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1793, allocations: 0 / 0.4946 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1794, allocations: 3.984 kB / 0.4946 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.1809, allocations: 1.061 MB / 0.4956 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.181, allocations: 0 / 0.4956 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00037/0.1813, allocations: 83.83 kB / 0.4957 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001378/0.1815, allocations: 32.78 kB / 0.4957 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.1815, allocations: 12 kB / 0.4958 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003421/0.1819, allocations: 0.5486 MB / 0.4963 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.1819, allocations: 8.062 kB / 0.4963 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007862/0.1827, allocations: 0.5518 MB / 0.4968 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.1828, allocations: 116.5 kB / 0.497 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.388e-05/0.1829, allocations: 8 kB / 0.497 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001796/0.1831, allocations: 12 kB / 0.497 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.719e-05/0.1832, allocations: 23.91 kB / 0.497 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.1832, allocations: 19.92 kB / 0.497 GB, free: 10.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002934/0.1835, allocations: 271.1 kB / 0.4973 GB, free: 10.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1835, allocations: 4 kB / 0.4973 GB, free: 10.22 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005785/0.1841, allocations: 124.1 kB / 0.4974 GB, free: 10.1 MB / 430.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.001143/0.1853, allocations: 1.123 MB / 0.4985 GB, free: 8.934 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008156/0.1861, allocations: 352.6 kB / 0.4988 GB, free: 8.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.1861, allocations: 0 / 0.4988 GB, free: 8.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.1864, allocations: 145.1 kB / 0.499 GB, free: 8.449 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005985/0.187, allocations: 69.41 kB / 0.499 GB, free: 8.379 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007109/0.1941, allocations: 5.255 MB / 0.5042 GB, free: 2.844 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006034/0.1948, allocations: 0.9639 MB / 0.5051 GB, free: 1.852 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002145/0.195, allocations: 60.53 kB / 0.5052 GB, free: 1.789 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003317/0.1953, allocations: 299.3 kB / 0.5055 GB, free: 1.496 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1954, allocations: 0 / 0.5055 GB, free: 1.496 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3945/0.5899, allocations: 9.036 MB / 0.5143 GB, free: 8.617 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00029/0.5902, allocations: 220.9 kB / 0.5145 GB, free: 8.367 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.459/3.05, allocations: 8 kB / 0.5145 GB, free: 8.359 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/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