Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.00141/0.00141, allocations: 124.5 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.001539/0.001539, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.518/1.518, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2498/0.2498, allocations: 46.92 MB / 357.1 MB, free: 10.31 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.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 63.91 kB / 0.4909 GB, free: 7.973 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1593, allocations: 65.99 MB / 0.5554 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004329/0.1636, allocations: 1.92 MB / 0.5572 GB, free: 3.926 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.165, allocations: 0.5804 MB / 0.5578 GB, free: 3.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1651, allocations: 0 / 0.5578 GB, free: 3.34 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.1653, allocations: 23.73 kB / 0.5578 GB, free: 3.316 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.1654, allocations: 43.62 kB / 0.5579 GB, free: 3.273 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.1656, allocations: 43.88 kB / 0.5579 GB, free: 3.23 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002431/0.1659, allocations: 155.2 kB / 0.5581 GB, free: 3.078 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.1661, allocations: 45.64 kB / 0.5581 GB, free: 3.031 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.1663, allocations: 67.78 kB / 0.5582 GB, free: 2.965 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.1664, allocations: 67.7 kB / 0.5582 GB, free: 2.898 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.1664, allocations: 12 kB / 0.5582 GB, free: 2.887 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.791e-05/0.1665, allocations: 19.98 kB / 0.5583 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.503e-05/0.1665, allocations: 27.86 kB / 0.5583 GB, free: 2.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.587e-05/0.1666, allocations: 67.66 kB / 0.5583 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.1669, allocations: 159.3 kB / 0.5585 GB, free: 2.617 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.1669, allocations: 0 / 0.5585 GB, free: 2.617 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1669, allocations: 0 / 0.5585 GB, free: 2.617 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.1669, allocations: 0 / 0.5585 GB, free: 2.617 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007157/0.1676, allocations: 438.8 kB / 0.5589 GB, free: 2.141 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.1677, allocations: 8.031 kB / 0.5589 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.789e-05/0.1677, allocations: 50.73 kB / 0.559 GB, free: 2.074 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.1679, allocations: 24.83 kB / 0.559 GB, free: 2.051 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/0.1682, allocations: 220.1 kB / 0.5592 GB, free: 1.797 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.1683, allocations: 8.375 kB / 0.5592 GB, free: 1.789 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.244e-05/0.1683, allocations: 16.33 kB / 0.5592 GB, free: 1.773 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.1686, allocations: 133.5 kB / 0.5594 GB, free: 1.637 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.1686, allocations: 0 / 0.5594 GB, free: 1.637 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.1687, allocations: 4 kB / 0.5594 GB, free: 1.633 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.1687, allocations: 7.984 kB / 0.5594 GB, free: 1.625 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.1689, allocations: 87.92 kB / 0.5595 GB, free: 1.539 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007829/0.1697, allocations: 456.4 kB / 0.5599 GB, free: 1.043 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.1699, allocations: 122.4 kB / 0.56 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.17, allocations: 48.78 kB / 0.5601 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.1701, allocations: 4 kB / 0.5601 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.1701, allocations: 38.5 kB / 0.5601 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.1701, allocations: 0 / 0.5601 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001774/0.1719, allocations: 0.8149 MB / 0.5609 GB, free: 15.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.1719, allocations: 55.41 kB / 0.5609 GB, free: 15.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.1721, allocations: 146.8 kB / 0.5611 GB, free: 15.69 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.1721, allocations: 29.7 kB / 0.5611 GB, free: 15.65 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.1722, allocations: 112.4 kB / 0.5612 GB, free: 15.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.807e-05/0.1723, allocations: 75.36 kB / 0.5613 GB, free: 15.46 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.727e-05/0.1724, allocations: 33.72 kB / 0.5613 GB, free: 15.42 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.1725, allocations: 326.8 kB / 0.5616 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.1727, allocations: 43.97 kB / 0.5617 GB, free: 15.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.1728, allocations: 79.34 kB / 0.5617 GB, free: 14.96 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/0.1731, allocations: 127.4 kB / 0.5619 GB, free: 14.82 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1731, allocations: 4 kB / 0.5619 GB, free: 14.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004157/0.1735, allocations: 210.1 kB / 0.5621 GB, free: 14.61 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1735, allocations: 4 kB / 0.5621 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1735, allocations: 8.031 kB / 0.5621 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001919/0.1737, allocations: 40.83 kB / 0.5621 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.1739, allocations: 35.92 kB / 0.5622 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001865/0.1757, allocations: 1.737 MB / 0.5639 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.535e-05/0.1758, allocations: 7.984 kB / 0.5639 GB, free: 12.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.1758, allocations: 8 kB / 0.5639 GB, free: 12.62 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002083/0.176, allocations: 129.9 kB / 0.564 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.559e-05/0.1761, allocations: 11.89 kB / 0.564 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.2e-05/0.1761, allocations: 21.12 kB / 0.564 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.1761, allocations: 0 / 0.564 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.1762, allocations: 7.984 kB / 0.564 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1762, allocations: 0 / 0.564 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008796/0.177, allocations: 0.5522 MB / 0.5646 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.177, allocations: 0 / 0.5646 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.1772, allocations: 35.98 kB / 0.5646 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001239/0.1773, allocations: 32.83 kB / 0.5646 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.1774, allocations: 4 kB / 0.5646 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.1787, allocations: 1.477 MB / 0.5661 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.1787, allocations: 8.016 kB / 0.5661 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000556/0.1793, allocations: 343.2 kB / 0.5664 GB, free: 9.777 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.1e-05/0.1794, allocations: 93.03 kB / 0.5665 GB, free: 9.668 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.1794, allocations: 8 kB / 0.5665 GB, free: 9.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.25e-05/0.1795, allocations: 3.938 kB / 0.5665 GB, free: 9.656 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.489e-05/0.1795, allocations: 19.92 kB / 0.5665 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.1795, allocations: 4 kB / 0.5665 GB, free: 9.633 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.621e-05/0.1796, allocations: 115.3 kB / 0.5667 GB, free: 9.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1796, allocations: 0 / 0.5667 GB, free: 9.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003664/0.18, allocations: 43.94 kB / 0.5667 GB, free: 9.477 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (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 (16): * Single equations (assignments): 15 * 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): 1 system {(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.0009367/0.1809, allocations: 0.8763 MB / 0.5676 GB, free: 8.57 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005962/0.1815, allocations: 250.8 kB / 0.5678 GB, free: 8.312 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1815, allocations: 0 / 0.5678 GB, free: 8.312 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002942/0.1818, allocations: 194.7 kB / 0.568 GB, free: 8.109 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.1822, allocations: 21.95 kB / 0.568 GB, free: 8.09 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/0.1851, allocations: 2.064 MB / 0.57 GB, free: 5.918 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.1856, allocations: 0.7243 MB / 0.5707 GB, free: 5.164 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.851e-05/0.1856, allocations: 13.41 kB / 0.5707 GB, free: 5.152 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.55e-05/0.1857, allocations: 43.42 kB / 0.5708 GB, free: 5.109 MB / 430.1 MB Notification: Performance of SimCode: time 1.132e-06/0.1857, allocations: 0 / 0.5708 GB, free: 5.109 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.2192, allocations: 3.477 MB / 0.5742 GB, free: 1.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.77, allocations: 10.58 kB / 0.5742 GB, free: 1.762 MB / 430.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable J2.phi in file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.00893662800081]