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.00135/0.00135, allocations: 121 kB / 18.49 MB, free: 4.562 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.0014/0.0014, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.514/1.514, allocations: 230.6 MB / 254.8 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.2535/0.2535, allocations: 46.92 MB / 357.8 MB, free: 10.29 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 71.88 kB / 0.4916 GB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1548, allocations: 65.99 MB / 0.5561 GB, free: 5.82 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003915/0.1587, allocations: 1.92 MB / 0.5579 GB, free: 3.887 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.16, allocations: 0.5688 MB / 0.5585 GB, free: 3.312 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.1601, allocations: 7.938 kB / 0.5585 GB, free: 3.305 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.1603, allocations: 23.78 kB / 0.5585 GB, free: 3.281 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.1604, allocations: 39.64 kB / 0.5585 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002777/0.1607, allocations: 47.88 kB / 0.5586 GB, free: 3.195 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002485/0.161, allocations: 151.3 kB / 0.5587 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.1612, allocations: 50.19 kB / 0.5588 GB, free: 2.996 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001993/0.1614, allocations: 67.78 kB / 0.5589 GB, free: 2.93 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.1615, allocations: 63.7 kB / 0.5589 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.037e-05/0.1615, allocations: 12 kB / 0.5589 GB, free: 2.855 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.176e-05/0.1616, allocations: 12 kB / 0.5589 GB, free: 2.844 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.445e-05/0.1616, allocations: 35.84 kB / 0.559 GB, free: 2.809 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.033e-05/0.1617, allocations: 67.67 kB / 0.559 GB, free: 2.742 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002966/0.162, allocations: 155.3 kB / 0.5592 GB, free: 2.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.162, allocations: 0 / 0.5592 GB, free: 2.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.058e-06/0.162, allocations: 4 kB / 0.5592 GB, free: 2.586 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.162, allocations: 0 / 0.5592 GB, free: 2.586 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.0007254/0.1628, allocations: 446.7 kB / 0.5596 GB, free: 2.102 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.1628, allocations: 12.03 kB / 0.5596 GB, free: 2.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.854e-05/0.1628, allocations: 4.188 kB / 0.5596 GB, free: 2.086 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.083e-05/0.1629, allocations: 50.72 kB / 0.5597 GB, free: 2.027 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000177/0.1631, allocations: 20.84 kB / 0.5597 GB, free: 2.008 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003628/0.1634, allocations: 212.1 kB / 0.5599 GB, free: 1.762 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.1634, allocations: 12.38 kB / 0.5599 GB, free: 1.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.963e-05/0.1635, allocations: 24.08 kB / 0.5599 GB, free: 1.727 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003198/0.1638, allocations: 121.6 kB / 0.56 GB, free: 1.602 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.1638, allocations: 4 kB / 0.5601 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.1638, allocations: 4 kB / 0.5601 GB, free: 1.594 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1639, allocations: 4 kB / 0.5601 GB, free: 1.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.1641, allocations: 83.94 kB / 0.5601 GB, free: 1.508 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008574/0.1649, allocations: 468.3 kB / 0.5606 GB, free: 1 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002553/0.1652, allocations: 106.5 kB / 0.5607 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.1653, allocations: 52.84 kB / 0.5607 GB, free: 0.832 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.1653, allocations: 0 / 0.5607 GB, free: 0.832 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/0.1654, allocations: 46.42 kB / 0.5608 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 4.097e-06/0.1654, allocations: 4 kB / 0.5608 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001753/0.1671, allocations: 0.8132 MB / 0.5616 GB, free: 15.87 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.1672, allocations: 55.41 kB / 0.5616 GB, free: 15.8 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.1673, allocations: 142.8 kB / 0.5618 GB, free: 15.65 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.1673, allocations: 29.7 kB / 0.5618 GB, free: 15.62 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.671e-05/0.1674, allocations: 116.4 kB / 0.5619 GB, free: 15.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.395e-05/0.1675, allocations: 71.38 kB / 0.562 GB, free: 15.43 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.886e-05/0.1676, allocations: 33.72 kB / 0.562 GB, free: 15.39 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1677, allocations: 322.8 kB / 0.5623 GB, free: 15.06 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.1679, allocations: 43.98 kB / 0.5624 GB, free: 15.02 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.168, allocations: 90.28 kB / 0.5624 GB, free: 14.92 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/0.1683, allocations: 123.4 kB / 0.5626 GB, free: 14.79 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1683, allocations: 0 / 0.5626 GB, free: 14.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004446/0.1687, allocations: 218.1 kB / 0.5628 GB, free: 14.57 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.1687, allocations: 7.938 kB / 0.5628 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1687, allocations: 0 / 0.5628 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002096/0.1689, allocations: 48.77 kB / 0.5628 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.1691, allocations: 36.05 kB / 0.5629 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001855/0.171, allocations: 1.73 MB / 0.5645 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.1711, allocations: 8.031 kB / 0.5646 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.1711, allocations: 8 kB / 0.5646 GB, free: 12.59 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.0001493/0.1713, allocations: 129.8 kB / 0.5647 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.917e-05/0.1713, allocations: 15.91 kB / 0.5647 GB, free: 12.43 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.824e-05/0.1714, allocations: 25.11 kB / 0.5647 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1714, allocations: 4 kB / 0.5647 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.1714, allocations: 0 / 0.5647 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1714, allocations: 0 / 0.5647 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009263/0.1723, allocations: 0.5505 MB / 0.5653 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1723, allocations: 0 / 0.5653 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.1725, allocations: 31.98 kB / 0.5653 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001479/0.1726, allocations: 37.02 kB / 0.5653 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.1727, allocations: 7.938 kB / 0.5653 GB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/0.1741, allocations: 1.481 MB / 0.5668 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1741, allocations: 0 / 0.5668 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005723/0.1746, allocations: 351.2 kB / 0.5671 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.16e-05/0.1747, allocations: 89.05 kB / 0.5672 GB, free: 9.629 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.1747, allocations: 4 kB / 0.5672 GB, free: 9.625 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.1748, allocations: 7.938 kB / 0.5672 GB, free: 9.617 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.397e-05/0.1749, allocations: 27.97 kB / 0.5672 GB, free: 9.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.1749, allocations: 4 kB / 0.5672 GB, free: 9.586 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.175, allocations: 103.3 kB / 0.5673 GB, free: 9.484 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.175, allocations: 0 / 0.5673 GB, free: 9.484 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003718/0.1754, allocations: 43.94 kB / 0.5674 GB, free: 9.441 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.0009306/0.1763, allocations: 0.8764 MB / 0.5682 GB, free: 8.535 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006129/0.177, allocations: 252.8 kB / 0.5685 GB, free: 8.277 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.177, allocations: 0 / 0.5685 GB, free: 8.277 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003092/0.1773, allocations: 190.7 kB / 0.5687 GB, free: 8.078 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.1777, allocations: 23.97 kB / 0.5687 GB, free: 8.055 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.1807, allocations: 2.077 MB / 0.5707 GB, free: 5.867 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.1811, allocations: 0.7166 MB / 0.5714 GB, free: 5.121 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.544e-05/0.1811, allocations: 9.422 kB / 0.5714 GB, free: 5.113 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.755e-05/0.1812, allocations: 43.42 kB / 0.5715 GB, free: 5.07 MB / 430.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1812, allocations: 0 / 0.5715 GB, free: 5.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.2078, allocations: 3.517 MB / 0.5749 GB, free: 1.715 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.17, allocations: 11.94 kB / 0.5749 GB, free: 1.703 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 & /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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.480054567975458]