Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.0008595/0.0008595, allocations: 79.69 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.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.0008448/0.0008448, allocations: 170 kB / 23.95 MB, free: 0.6133 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.8828/0.8828, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.72e-05/1.858e-05, allocations: 6.219 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002277/0.002295, allocations: 1.995 MB / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009026/0.003198, allocations: 0.5414 MB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.003322, allocations: 7.938 kB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.003434, allocations: 19.73 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001434/0.003577, allocations: 27.72 kB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.003788, allocations: 59.8 kB / 327.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.003935, allocations: 123.5 kB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.004064, allocations: 42.16 kB / 327.4 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.171e-05/0.004156, allocations: 75.86 kB / 327.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.216e-05/0.004218, allocations: 43.83 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.763e-05/0.004245, allocations: 12 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.336e-05/0.004259, allocations: 8 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.851e-05/0.004287, allocations: 27.91 kB / 327.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.335e-05/0.004331, allocations: 39.91 kB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.004512, allocations: 131.5 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.004516, allocations: 0 / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.004517, allocations: 0 / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.004522, allocations: 0 / 327.7 MB, free: 12.8 MB / 298.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.0004868/0.005009, allocations: 357.8 kB / 328 MB, free: 12.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.00505, allocations: 8.031 kB / 328 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.863e-05/0.005089, allocations: 46.73 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.158e-05/0.00512, allocations: 16.84 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.00532, allocations: 149.5 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.005332, allocations: 8.375 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.005357, allocations: 12.38 kB / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.005724, allocations: 251.1 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.005736, allocations: 192 / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.005749, allocations: 12.06 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.005755, allocations: 4 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001459/0.005901, allocations: 83.88 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004701/0.006371, allocations: 0.5156 MB / 329.1 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.006621, allocations: 139.9 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.928e-05/0.006711, allocations: 82.5 kB / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.006733, allocations: 4 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.006752, allocations: 34.56 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.006753, allocations: 0 / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003215/0.007075, allocations: 185.5 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.007132, allocations: 114.9 kB / 329.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.675e-05/0.007209, allocations: 130 kB / 329.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.193e-05/0.007221, allocations: 29.7 kB / 329.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.941e-05/0.00727, allocations: 111.9 kB / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.007289, allocations: 27.78 kB / 330 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.789e-05/0.007327, allocations: 25.66 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.364e-05/0.007401, allocations: 322.8 kB / 330.3 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.541e-05/0.007456, allocations: 31.97 kB / 330.3 MB, free: 9.883 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.611e-05/0.007522, allocations: 78.88 kB / 330.4 MB, free: 9.781 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001295/0.007652, allocations: 110.7 kB / 330.5 MB, free: 9.648 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.007655, allocations: 3.984 kB / 330.5 MB, free: 9.645 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001601/0.007815, allocations: 133.5 kB / 330.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.00783, allocations: 8 kB / 330.7 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.007836, allocations: 0 / 330.7 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.00785, allocations: 4 kB / 330.7 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.583e-05/0.007916, allocations: 27.92 kB / 330.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.619e-06/0.007926, allocations: 11.92 kB / 330.7 MB, free: 9.457 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.077e-05/0.007967, allocations: 16.16 kB / 330.7 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.007976, allocations: 15.94 kB / 330.7 MB, free: 9.426 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 7.775e-05/0.008054, allocations: 117.8 kB / 330.9 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.019e-05/0.008144, allocations: 86.02 kB / 330.9 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.438e-05/0.008208, allocations: 20.7 kB / 331 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.008212, allocations: 4 kB / 331 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.008218, allocations: 3.938 kB / 331 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.008222, allocations: 4.094 kB / 331 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001684/0.00839, allocations: 172.5 kB / 331.1 MB, free: 8.973 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.008393, allocations: 8 kB / 331.2 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.335e-05/0.008486, allocations: 31.98 kB / 331.2 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.008488, allocations: 0 / 331.2 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.0085, allocations: 11.98 kB / 331.2 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.008502, allocations: 0 / 331.2 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.008504, allocations: 3.938 kB / 331.2 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005417/0.009046, allocations: 378.2 kB / 331.6 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.516e-05/0.009061, allocations: 11.98 kB / 331.6 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.009076, allocations: 12.05 kB / 331.6 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.486e-05/0.009141, allocations: 4.234 kB / 331.6 MB, free: 8.504 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.009176, allocations: 15.92 kB / 331.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.009181, allocations: 4 kB / 331.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.794e-05/0.009219, allocations: 95.27 kB / 331.7 MB, free: 8.391 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009219, allocations: 0 / 331.7 MB, free: 8.391 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002004/0.009419, allocations: 27.94 kB / 331.7 MB, free: 8.363 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.0004549/0.009874, allocations: 0.9193 MB / 332.7 MB, free: 7.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001694/0.01004, allocations: 95.8 kB / 332.7 MB, free: 7.316 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.604e-06/0.01005, allocations: 0 / 332.7 MB, free: 7.316 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.682e-05/0.01009, allocations: 31.91 kB / 332.8 MB, free: 7.285 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.01043, allocations: 60.06 kB / 332.8 MB, free: 7.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.01173, allocations: 1.811 MB / 334.6 MB, free: 5.285 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.462e-05/0.0118, allocations: 101.4 kB / 334.7 MB, free: 5.168 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.214e-05/0.01184, allocations: 8.922 kB / 334.8 MB, free: 5.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.36e-05/0.01189, allocations: 40.42 kB / 334.8 MB, free: 5.121 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01189, allocations: 0 / 334.8 MB, free: 5.121 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01815/0.03004, allocations: 3.417 MB / 338.2 MB, free: 1.867 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.623/6.653, allocations: 3.266 kB / 338.2 MB, free: 1.867 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.31954700872302]