Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001849/0.001849, allocations: 124.3 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002062/0.002062, allocations: 199.3 kB / 20.74 MB, free: 2.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.577/1.577, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2383/0.2383, allocations: 46.92 MB / 357.1 MB, free: 10.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 71.91 kB / 0.4909 GB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1336, allocations: 65.99 MB / 0.5554 GB, free: 5.844 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008329/0.142, allocations: 5.796 MB / 0.561 GB, free: 16 kB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004774/0.1467, allocations: 2.364 MB / 0.5633 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001008/0.1477, allocations: 59.5 kB / 0.5634 GB, free: 13.59 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007138/0.1485, allocations: 218 kB / 0.5636 GB, free: 13.37 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007493/0.1492, allocations: 190.2 kB / 0.5638 GB, free: 13.18 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001352/0.1506, allocations: 474.8 kB / 0.5642 GB, free: 12.72 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001657/0.1522, allocations: 1.114 MB / 0.5653 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008736/0.1531, allocations: 429.5 kB / 0.5657 GB, free: 11.15 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006655/0.1538, allocations: 390.6 kB / 0.5661 GB, free: 10.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000629/0.1544, allocations: 394 kB / 0.5665 GB, free: 10.38 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.1546, allocations: 100 kB / 0.5666 GB, free: 10.29 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005107/0.1551, allocations: 159.9 kB / 0.5667 GB, free: 10.13 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003465/0.1554, allocations: 223.3 kB / 0.5669 GB, free: 9.91 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006099/0.1561, allocations: 469.6 kB / 0.5674 GB, free: 9.449 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001722/0.1578, allocations: 1.284 MB / 0.5686 GB, free: 8.16 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1578, allocations: 0 / 0.5686 GB, free: 8.16 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1578, allocations: 0 / 0.5686 GB, free: 8.16 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.253e-05/0.1578, allocations: 0 / 0.5686 GB, free: 8.16 MB / 430.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.001973/0.1598, allocations: 1.157 MB / 0.5698 GB, free: 6.953 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/0.1598, allocations: 12.03 kB / 0.5698 GB, free: 6.941 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001878/0.16, allocations: 151.8 kB / 0.5699 GB, free: 6.785 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003005/0.1603, allocations: 120.2 kB / 0.57 GB, free: 6.668 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.1613, allocations: 0.5945 MB / 0.5706 GB, free: 6.031 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.593e-05/0.1614, allocations: 70 kB / 0.5707 GB, free: 5.961 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.1615, allocations: 91.95 kB / 0.5708 GB, free: 5.871 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.1632, allocations: 0.8931 MB / 0.5716 GB, free: 4.918 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.103e-05/0.1632, allocations: 15.81 kB / 0.5717 GB, free: 4.902 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.186e-05/0.1633, allocations: 36 kB / 0.5717 GB, free: 4.867 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/0.1633, allocations: 24 kB / 0.5717 GB, free: 4.844 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001137/0.1645, allocations: 0.5191 MB / 0.5722 GB, free: 4.32 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004251/0.1687, allocations: 3.609 MB / 0.5757 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006311/0.1693, allocations: 206.7 kB / 0.5759 GB, free: 348 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.1695, allocations: 96.81 kB / 0.576 GB, free: 248 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002864/0.1698, allocations: 255.3 kB / 0.5763 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.1699, allocations: 34.56 kB / 0.5763 GB, free: 15.89 MB / 446.1 MB Notification: Performance of pre-optimization done (n=30): time 3.647e-06/0.1699, allocations: 0 / 0.5763 GB, free: 15.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=35): time 0.002721/0.1726, allocations: 1.305 MB / 0.5776 GB, free: 14.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.1726, allocations: 59.34 kB / 0.5776 GB, free: 14.42 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005302/0.1732, allocations: 405.8 kB / 0.578 GB, free: 14.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.1732, allocations: 29.7 kB / 0.5781 GB, free: 13.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003707/0.1736, allocations: 479.5 kB / 0.5785 GB, free: 13.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.1737, allocations: 142.8 kB / 0.5787 GB, free: 13.37 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.1738, allocations: 98.2 kB / 0.5787 GB, free: 13.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.174, allocations: 362.8 kB / 0.5791 GB, free: 12.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002686/0.1743, allocations: 121.1 kB / 0.5792 GB, free: 12.78 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003888/0.1747, allocations: 308.4 kB / 0.5795 GB, free: 12.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006742/0.1754, allocations: 463.6 kB / 0.5799 GB, free: 11.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1754, allocations: 0 / 0.5799 GB, free: 11.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009012/0.1763, allocations: 0.5126 MB / 0.5804 GB, free: 11.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.1763, allocations: 8 kB / 0.5805 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.1763, allocations: 8 kB / 0.5805 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002134/0.1765, allocations: 45.56 kB / 0.5805 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.1769, allocations: 131.8 kB / 0.5806 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004539/0.1774, allocations: 0.5563 MB / 0.5812 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.1776, allocations: 19.98 kB / 0.5812 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.878e-05/0.1777, allocations: 28 kB / 0.5812 GB, free: 10.52 MB / 446.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.000344/0.178, allocations: 227.8 kB / 0.5814 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.1781, allocations: 59.67 kB / 0.5815 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000695/0.1788, allocations: 326.9 kB / 0.5818 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1788, allocations: 0 / 0.5818 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1788, allocations: 4 kB / 0.5818 GB, free: 9.891 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.1788, allocations: 3.984 kB / 0.5818 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.1805, allocations: 1.062 MB / 0.5828 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1805, allocations: 0 / 0.5828 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003951/0.1809, allocations: 83.89 kB / 0.5829 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001583/0.1811, allocations: 32.78 kB / 0.583 GB, free: 8.633 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.1811, allocations: 8 kB / 0.583 GB, free: 8.625 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004001/0.1815, allocations: 0.5525 MB / 0.5835 GB, free: 8.047 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.1815, allocations: 4.031 kB / 0.5835 GB, free: 8.043 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008983/0.1824, allocations: 0.557 MB / 0.5841 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.1825, allocations: 120.8 kB / 0.5842 GB, free: 7.309 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.959e-05/0.1826, allocations: 8 kB / 0.5842 GB, free: 7.301 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.1827, allocations: 11.98 kB / 0.5842 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.1828, allocations: 23.91 kB / 0.5842 GB, free: 7.266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.321e-05/0.1828, allocations: 16 kB / 0.5842 GB, free: 7.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003235/0.1831, allocations: 271.1 kB / 0.5845 GB, free: 6.992 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1831, allocations: 0 / 0.5845 GB, free: 6.992 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005962/0.1837, allocations: 131.9 kB / 0.5846 GB, free: 6.863 MB / 446.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.001294/0.185, allocations: 1.116 MB / 0.5857 GB, free: 5.699 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007327/0.1857, allocations: 311.6 kB / 0.586 GB, free: 5.395 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.1858, allocations: 1.688 kB / 0.586 GB, free: 5.395 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003073/0.1861, allocations: 135.8 kB / 0.5861 GB, free: 5.262 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005791/0.1866, allocations: 84.23 kB / 0.5862 GB, free: 5.184 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007005/0.1936, allocations: 4.859 MB / 0.591 GB, free: 40 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2405/0.4342, allocations: 0.9518 MB / 0.5919 GB, free: 34.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002401/0.4344, allocations: 57.27 kB / 0.5919 GB, free: 34.76 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003416/0.4348, allocations: 297.6 kB / 0.5922 GB, free: 34.75 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4348, allocations: 0 / 0.5922 GB, free: 34.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05365/0.4884, allocations: 9.489 MB / 0.6015 GB, free: 33.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.08, allocations: 14.67 kB / 0.6015 GB, free: 33.71 MB / 446.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.21764162601903]