Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.0008628/0.0008628, 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.0008334/0.0008334, 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.8749/0.8749, allocations: 177.1 MB / 204.3 MB, free: 5.703 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.718e-05/1.855e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002315/0.002334, allocations: 2.02 MB / 326.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007627/0.003097, allocations: 0.5803 MB / 327.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.003203, allocations: 7.938 kB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001007/0.003303, allocations: 15.8 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001507/0.003454, allocations: 31.66 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000219/0.003673, allocations: 79.66 kB / 327.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.003818, allocations: 123.5 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.003942, allocations: 46.69 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.038e-05/0.004032, allocations: 75.8 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.118e-05/0.004103, allocations: 43.81 kB / 327.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.00413, allocations: 16 kB / 327.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.591e-05/0.004146, allocations: 12 kB / 327.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.368e-05/0.0042, allocations: 31.91 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.178e-05/0.004242, allocations: 39.86 kB / 327.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.004413, allocations: 147.5 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.004416, allocations: 0 / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.004417, allocations: 0 / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.004422, allocations: 0 / 327.8 MB, free: 12.68 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004463/0.004868, allocations: 373.6 kB / 328.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.004904, allocations: 12.03 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.765e-05/0.004941, allocations: 50.73 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.392e-05/0.004975, allocations: 20.8 kB / 328.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.005196, allocations: 166.3 kB / 328.4 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.005211, allocations: 12.38 kB / 328.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.005239, allocations: 16.38 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003771/0.005616, allocations: 258.2 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.005628, allocations: 192 / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.005642, allocations: 8.125 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.005648, allocations: 4 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001555/0.005804, allocations: 83.88 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000509/0.006313, allocations: 0.5233 MB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002664/0.006579, allocations: 151.8 kB / 329.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.234e-05/0.006671, allocations: 62.64 kB / 329.5 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.006698, allocations: 8 kB / 329.5 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.046e-05/0.006718, allocations: 34.56 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.072e-06/0.006719, allocations: 0 / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003473/0.007066, allocations: 189.4 kB / 329.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/0.007126, allocations: 122.7 kB / 329.9 MB, free: 10.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.947e-05/0.007225, allocations: 155 kB / 330 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.007238, allocations: 29.7 kB / 330 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.182e-05/0.00729, allocations: 112.6 kB / 330.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.007309, allocations: 31.77 kB / 330.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.007345, allocations: 25.72 kB / 330.2 MB, free: 10.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.941e-05/0.007424, allocations: 322.8 kB / 330.5 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.573e-05/0.00748, allocations: 27.97 kB / 330.5 MB, free: 9.668 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.643e-05/0.007557, allocations: 74.84 kB / 330.6 MB, free: 9.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001275/0.007684, allocations: 114.7 kB / 330.7 MB, free: 9.434 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.007686, allocations: 0 / 330.7 MB, free: 9.434 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001621/0.007848, allocations: 145.4 kB / 330.9 MB, free: 9.285 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.007861, allocations: 4 kB / 330.9 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.007866, allocations: 0 / 330.9 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.007879, allocations: 4 kB / 330.9 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.868e-05/0.007947, allocations: 27.98 kB / 330.9 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.007954, allocations: 11.86 kB / 330.9 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.783e-05/0.008002, allocations: 24.16 kB / 330.9 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.008009, allocations: 4 kB / 330.9 MB, free: 9.211 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.662e-05/0.008086, allocations: 125.8 kB / 331.1 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.535e-05/0.008181, allocations: 93.53 kB / 331.2 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.026e-05/0.008241, allocations: 20.77 kB / 331.2 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.008245, allocations: 4 kB / 331.2 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.008251, allocations: 3.938 kB / 331.2 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.008255, allocations: 4 kB / 331.2 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.008439, allocations: 180.6 kB / 331.4 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.008442, allocations: 4.469 kB / 331.4 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.008549, allocations: 35.98 kB / 331.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.008551, allocations: 0 / 331.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.719e-06/0.008561, allocations: 0 / 331.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.008565, allocations: 7.938 kB / 331.4 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.008569, allocations: 11.86 kB / 331.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003738/0.008943, allocations: 382 kB / 331.8 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.3e-05/0.008996, allocations: 23.97 kB / 331.8 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.009013, allocations: 4.062 kB / 331.8 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.286e-05/0.009086, allocations: 11.98 kB / 331.8 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.009129, allocations: 11.92 kB / 331.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.009134, allocations: 4 kB / 331.9 MB, free: 8.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.506e-05/0.009199, allocations: 120.1 kB / 332 MB, free: 8.113 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009199, allocations: 0 / 332 MB, free: 8.113 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002095/0.009409, allocations: 35.83 kB / 332 MB, free: 8.078 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.0005224/0.009931, allocations: 0.9196 MB / 332.9 MB, free: 7.125 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001742/0.01011, allocations: 91.86 kB / 333 MB, free: 7.035 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.01011, allocations: 0 / 333 MB, free: 7.035 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.027e-05/0.01016, allocations: 27.92 kB / 333 MB, free: 7.008 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.01054, allocations: 71.98 kB / 333.1 MB, free: 6.941 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.01195, allocations: 1.856 MB / 335 MB, free: 4.953 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.313e-05/0.01203, allocations: 122.5 kB / 335.1 MB, free: 4.812 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.426e-05/0.01206, allocations: 4.656 kB / 335.1 MB, free: 4.809 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.076e-05/0.01213, allocations: 40.48 kB / 335.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of SimCode: time 7.61e-07/0.01213, allocations: 0 / 335.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.03063, allocations: 3.618 MB / 338.8 MB, free: 1.344 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.682/6.713, allocations: 15.72 kB / 338.8 MB, free: 1.328 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.34635779261589]