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.0009644/0.0009644, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.000971/0.000971, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9197/0.9197, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.2528/0.2528, allocations: 34.25 MB / 294.9 MB, free: 0.707 MB / 266.7 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 1.633e-06/1.633e-06, allocations: 0 / 442.1 MB, free: 1.68 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.853e-05/2.017e-05, allocations: 2.281 kB / 442.1 MB, free: 1.676 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.1783/0.1784, allocations: 1.877 MB / 444 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007812/0.1791, allocations: 0.5259 MB / 444.6 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.271e-05/0.1792, allocations: 6.812 kB / 444.6 MB, free: 43.19 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.1793, allocations: 19.89 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.157e-05/0.1794, allocations: 48.19 kB / 444.6 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.1796, allocations: 49.41 kB / 444.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.1797, allocations: 161 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.1799, allocations: 38.98 kB / 444.9 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.18, allocations: 96.64 kB / 445 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.868e-05/0.1801, allocations: 41.95 kB / 445 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.1801, allocations: 14.62 kB / 445 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.324e-05/0.1801, allocations: 12.31 kB / 445 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.898e-05/0.1802, allocations: 31.09 kB / 445.1 MB, free: 43.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.331e-05/0.1802, allocations: 46.47 kB / 445.1 MB, free: 43.09 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.1804, allocations: 163.7 kB / 445.3 MB, free: 43.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1804, allocations: 0.7812 kB / 445.3 MB, free: 43.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1804, allocations: 0 / 445.3 MB, free: 43.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1804, allocations: 3.219 kB / 445.3 MB, free: 43.07 MB / 410.7 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.0003881/0.1808, allocations: 365.2 kB / 445.6 MB, free: 42.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.1808, allocations: 10.88 kB / 445.6 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.612e-05/0.1808, allocations: 44.48 kB / 445.7 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.1809, allocations: 25.66 kB / 445.7 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.1811, allocations: 144.6 kB / 445.8 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.1811, allocations: 15.66 kB / 445.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.1811, allocations: 16.59 kB / 445.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001691/0.1813, allocations: 122.9 kB / 446 MB, free: 42.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1813, allocations: 4.141 kB / 446 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.1813, allocations: 9.25 kB / 446 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1813, allocations: 6.969 kB / 446 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.1815, allocations: 81.14 kB / 446.1 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004257/0.1819, allocations: 407.2 kB / 446.5 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.182, allocations: 110.6 kB / 446.6 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.033e-05/0.1821, allocations: 51.09 kB / 446.7 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.1821, allocations: 5.125 kB / 446.7 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.609e-05/0.1821, allocations: 35.88 kB / 446.7 MB, free: 42.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.654e-06/0.1821, allocations: 4 kB / 446.7 MB, free: 42.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008675/0.183, allocations: 0.6672 MB / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.569e-05/0.183, allocations: 54.31 kB / 447.4 MB, free: 41.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.418e-05/0.1831, allocations: 141.1 kB / 447.6 MB, free: 41.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.977e-06/0.1831, allocations: 29.7 kB / 447.6 MB, free: 41.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.066e-05/0.1831, allocations: 117.8 kB / 447.7 MB, free: 41.53 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.1832, allocations: 71.31 kB / 447.8 MB, free: 41.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-05/0.1832, allocations: 36.61 kB / 447.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.766e-05/0.1832, allocations: 324.2 kB / 448.1 MB, free: 41.13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.733e-05/0.1833, allocations: 41.31 kB / 448.2 MB, free: 41.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.468e-05/0.1834, allocations: 83.23 kB / 448.2 MB, free: 41.06 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.1835, allocations: 132.6 kB / 448.4 MB, free: 40.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1835, allocations: 3.938 kB / 448.4 MB, free: 40.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000215/0.1837, allocations: 205.2 kB / 448.6 MB, free: 40.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.1837, allocations: 5.594 kB / 448.6 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1837, allocations: 6.047 kB / 448.6 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001309/0.1838, allocations: 43.38 kB / 448.6 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.184, allocations: 35.02 kB / 448.7 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000792/0.1847, allocations: 1.621 MB / 450.3 MB, free: 39.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.975e-05/0.1848, allocations: 14.72 kB / 450.3 MB, free: 39.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.1848, allocations: 5.562 kB / 450.3 MB, free: 39.32 MB / 410.7 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 8.144e-05/0.1849, allocations: 133.8 kB / 450.4 MB, free: 39.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.018e-05/0.1849, allocations: 9.297 kB / 450.4 MB, free: 39.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.09e-05/0.185, allocations: 27.94 kB / 450.5 MB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.185, allocations: 2.844 kB / 450.5 MB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.185, allocations: 0 / 450.5 MB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.185, allocations: 8 kB / 450.5 MB, free: 39.17 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000428/0.1854, allocations: 0.5037 MB / 451 MB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1854, allocations: 0 / 451 MB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.22e-05/0.1855, allocations: 35.09 kB / 451 MB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.373e-05/0.1856, allocations: 30.2 kB / 451.1 MB, free: 38.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.1856, allocations: 6.75 kB / 451.1 MB, free: 38.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005684/0.1862, allocations: 1.369 MB / 452.4 MB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1862, allocations: 2.875 kB / 452.4 MB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.1864, allocations: 342.5 kB / 452.8 MB, free: 37.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.196e-05/0.1864, allocations: 15.44 kB / 452.8 MB, free: 37.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.073e-05/0.1864, allocations: 4 kB / 452.8 MB, free: 37.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.619e-05/0.1865, allocations: 10.05 kB / 452.8 MB, free: 37.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.1865, allocations: 22.91 kB / 452.8 MB, free: 37.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.1865, allocations: 5.781 kB / 452.8 MB, free: 37.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.623e-05/0.1866, allocations: 121.9 kB / 452.9 MB, free: 37.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1866, allocations: 0 / 452.9 MB, free: 37.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002102/0.1868, allocations: 35.94 kB / 453 MB, free: 37.11 MB / 410.7 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.0003907/0.1872, allocations: 0.8671 MB / 453.8 MB, free: 36.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003352/0.1875, allocations: 258.9 kB / 454.1 MB, free: 36.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1875, allocations: 2.781 kB / 454.1 MB, free: 36.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.1876, allocations: 189.3 kB / 454.3 MB, free: 36.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.1879, allocations: 23.3 kB / 454.3 MB, free: 36.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.1892, allocations: 2.018 MB / 456.3 MB, free: 34.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.642e-05/0.1893, allocations: 109.5 kB / 456.4 MB, free: 34.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.751e-05/0.1893, allocations: 14.55 kB / 456.4 MB, free: 34.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.751e-05/0.1893, allocations: 41.3 kB / 456.5 MB, free: 34.35 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.1893, allocations: 2.688 kB / 456.5 MB, free: 34.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01795/0.2073, allocations: 4.182 MB / 460.7 MB, free: 33.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.113/7.32, allocations: 4 kB / 460.7 MB, free: 33.23 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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: 9.345118479803205]