Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008019/0.0008019, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9215/0.9215, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.16e-05/3.375e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003624/0.003657, allocations: 1.957 MB / 320.4 MB, free: 4.387 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.004755, allocations: 0.4985 MB / 320.9 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.004939, allocations: 4 kB / 320.9 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001817/0.00512, allocations: 23.73 kB / 320.9 MB, free: 3.855 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.005338, allocations: 35.66 kB / 320.9 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003263/0.005664, allocations: 55.8 kB / 321 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002403/0.005905, allocations: 127.5 kB / 321.1 MB, free: 3.641 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.006125, allocations: 41.59 kB / 321.2 MB, free: 3.594 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.006276, allocations: 75.8 kB / 321.2 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.006379, allocations: 39.88 kB / 321.3 MB, free: 3.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.545e-05/0.006425, allocations: 12 kB / 321.3 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.856e-05/0.006443, allocations: 12 kB / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.515e-05/0.006488, allocations: 27.91 kB / 321.3 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.169e-05/0.00655, allocations: 35.92 kB / 321.4 MB, free: 3.395 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00027/0.00682, allocations: 135.5 kB / 321.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.006826, allocations: 0 / 321.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.006829, allocations: 0 / 321.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.006837, allocations: 0 / 321.5 MB, free: 3.262 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007337/0.007571, allocations: 353.8 kB / 321.8 MB, free: 2.887 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.777e-05/0.007638, allocations: 8.922 kB / 321.8 MB, free: 2.879 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.509e-05/0.007704, allocations: 54.73 kB / 321.9 MB, free: 2.816 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.836e-05/0.007752, allocations: 16.84 kB / 321.9 MB, free: 2.801 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003524/0.008104, allocations: 149.5 kB / 322.1 MB, free: 2.629 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.008128, allocations: 12.36 kB / 322.1 MB, free: 2.617 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.023e-05/0.008168, allocations: 12.38 kB / 322.1 MB, free: 2.605 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005422/0.008711, allocations: 250.9 kB / 322.3 MB, free: 2.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.00873, allocations: 4.188 kB / 322.3 MB, free: 2.336 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.00875, allocations: 12.11 kB / 322.3 MB, free: 2.324 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.008758, allocations: 4 kB / 322.3 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.00895, allocations: 79.88 kB / 322.4 MB, free: 2.242 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007231/0.009673, allocations: 0.5156 MB / 322.9 MB, free: 1.664 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.01006, allocations: 139.9 kB / 323.1 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.01018, allocations: 74.64 kB / 323.1 MB, free: 1.418 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.01021, allocations: 4 kB / 323.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.01024, allocations: 34.55 kB / 323.2 MB, free: 1.371 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.983e-06/0.01025, allocations: 0 / 323.2 MB, free: 1.371 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004557/0.0107, allocations: 189.4 kB / 323.4 MB, free: 1.18 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.0108, allocations: 114.7 kB / 323.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.01093, allocations: 137.5 kB / 323.6 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.01094, allocations: 29.7 kB / 323.6 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.938e-05/0.01103, allocations: 115.9 kB / 323.8 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.01106, allocations: 19.86 kB / 323.8 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-05/0.01111, allocations: 29.7 kB / 323.8 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.01124, allocations: 322.8 kB / 324.1 MB, free: 376 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.592e-05/0.01131, allocations: 19.98 kB / 324.1 MB, free: 356 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.977e-05/0.0114, allocations: 82.78 kB / 324.2 MB, free: 248 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.01156, allocations: 118.7 kB / 324.3 MB, free: 104 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.01157, allocations: 4 kB / 324.3 MB, free: 100 kB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002184/0.01179, allocations: 133.4 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.01181, allocations: 4 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.01182, allocations: 4 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.01185, allocations: 7.938 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.535e-05/0.01194, allocations: 31.97 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.01195, allocations: 7.938 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.775e-05/0.012, allocations: 11.89 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.01201, allocations: 4.453 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.01212, allocations: 133.8 kB / 324.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.01225, allocations: 89.58 kB / 324.8 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.617e-05/0.01234, allocations: 16.77 kB / 324.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.01235, allocations: 4 kB / 324.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.01236, allocations: 3.938 kB / 324.8 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.01237, allocations: 3.984 kB / 324.8 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002152/0.01258, allocations: 168.6 kB / 325 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.01258, allocations: 0 / 325 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.01271, allocations: 35.97 kB / 325 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.01271, allocations: 4 kB / 325 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.01272, allocations: 12.47 kB / 325 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.01273, allocations: 0 / 325 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.01273, allocations: 7.875 kB / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003752/0.01311, allocations: 371.5 kB / 325.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.93e-05/0.01312, allocations: 15.88 kB / 325.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.01314, allocations: 8 kB / 325.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.471e-05/0.01322, allocations: 12.05 kB / 325.4 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/0.01326, allocations: 7.938 kB / 325.4 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.01327, allocations: 11.98 kB / 325.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.707e-05/0.01331, allocations: 95.27 kB / 325.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01331, allocations: 0 / 325.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002073/0.01352, allocations: 20 kB / 325.5 MB, free: 14.81 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006036/0.01413, allocations: 0.9216 MB / 326.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000214/0.01434, allocations: 95.81 kB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.01434, allocations: 0 / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.422e-05/0.0144, allocations: 27.92 kB / 326.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.01484, allocations: 59.12 kB / 326.6 MB, free: 13.69 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001702/0.01654, allocations: 1.809 MB / 328.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.287e-05/0.01663, allocations: 105.3 kB / 328.6 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.682e-05/0.01666, allocations: 8.969 kB / 328.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.713e-05/0.01673, allocations: 32.48 kB / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01673, allocations: 0 / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02108/0.03781, allocations: 3.417 MB / 332 MB, free: 8.316 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.666/6.704, allocations: 7.125 kB / 332 MB, free: 8.312 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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: 8.434769780375063]