Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001343/0.001343, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.001047/0.001047, allocations: 166.5 kB / 25.61 MB, free: 8.492 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.8923/0.8923, allocations: 177.1 MB / 206 MB, free: 4.504 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: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 274.2 MB, free: 4.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.571e-05/1.7e-05, allocations: 2.312 kB / 274.2 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003124/0.003141, allocations: 2.092 MB / 276.3 MB, free: 2.359 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008643/0.004005, allocations: 0.5356 MB / 276.8 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.004113, allocations: 4 kB / 276.8 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.004227, allocations: 16.45 kB / 276.8 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.91e-05/0.004306, allocations: 30.19 kB / 276.8 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002483/0.004554, allocations: 55.81 kB / 276.9 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001772/0.004731, allocations: 135.4 kB / 277 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.004872, allocations: 37.97 kB / 277.1 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.004993, allocations: 71.88 kB / 277.1 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.00518, allocations: 45.8 kB / 277.2 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.005207, allocations: 12 kB / 277.2 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.878e-05/0.005226, allocations: 8 kB / 277.2 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.41e-05/0.00526, allocations: 31.89 kB / 277.2 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.608e-05/0.005306, allocations: 43.91 kB / 277.3 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.00547, allocations: 83.66 kB / 277.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.005473, allocations: 4 kB / 277.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.005475, allocations: 3.984 kB / 277.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.005479, allocations: 0 / 277.4 MB, free: 1.242 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004832/0.005963, allocations: 463.9 kB / 277.8 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.005997, allocations: 8.031 kB / 277.8 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.482e-05/0.006052, allocations: 24.84 kB / 277.8 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.006229, allocations: 144.5 kB / 278 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.006243, allocations: 12.31 kB / 278 MB, free: 0.543 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.813e-05/0.006271, allocations: 16.38 kB / 278 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.00657, allocations: 221.4 kB / 278.2 MB, free: 284 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.006584, allocations: 4.188 kB / 278.2 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.006596, allocations: 4.375 kB / 278.2 MB, free: 276 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.006606, allocations: 7.938 kB / 278.2 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.437e-05/0.00667, allocations: 38.56 kB / 278.3 MB, free: 232 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005413/0.007211, allocations: 0.6445 MB / 278.9 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.00741, allocations: 133.3 kB / 279.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.617e-05/0.007466, allocations: 47.14 kB / 279.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.007484, allocations: 4 kB / 279.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.00751, allocations: 41.39 kB / 279.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.007511, allocations: 0 / 279.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002365/0.007748, allocations: 113.7 kB / 279.3 MB, free: 15.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.007817, allocations: 110.8 kB / 279.4 MB, free: 15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.007924, allocations: 205 kB / 279.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.007939, allocations: 29.7 kB / 279.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.477e-05/0.008014, allocations: 162.8 kB / 279.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.922e-05/0.008033, allocations: 23.78 kB / 279.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-05/0.00808, allocations: 35.36 kB / 279.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.008217, allocations: 0.4961 MB / 280.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.003e-05/0.008237, allocations: 4 kB / 280.3 MB, free: 14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.605e-05/0.008303, allocations: 89.25 kB / 280.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000102/0.008405, allocations: 101.4 kB / 280.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.008407, allocations: 0 / 280.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002909/0.008698, allocations: 101.4 kB / 280.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.008713, allocations: 8 kB / 280.6 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.008718, allocations: 224 / 280.6 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.008729, allocations: 8 kB / 280.6 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.97e-05/0.008819, allocations: 23.98 kB / 280.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.008825, allocations: 7.938 kB / 280.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.516e-05/0.00888, allocations: 11.89 kB / 280.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.00889, allocations: 11.94 kB / 280.7 MB, free: 13.57 MB / 266.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 8.654e-05/0.008976, allocations: 168.6 kB / 280.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.009124, allocations: 85.45 kB / 280.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.218e-05/0.009156, allocations: 16.78 kB / 280.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.009159, allocations: 0 / 280.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.009162, allocations: 8 kB / 280.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.009167, allocations: 3.984 kB / 280.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.009358, allocations: 121.1 kB / 281.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.009359, allocations: 4 kB / 281.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.009517, allocations: 47.91 kB / 281.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.135e-06/0.00952, allocations: 0 / 281.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.009533, allocations: 0 / 281.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.009536, allocations: 4 kB / 281.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.009537, allocations: 0 / 281.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002017/0.009739, allocations: 346.7 kB / 281.5 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.866e-05/0.009757, allocations: 20.16 kB / 281.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.009775, allocations: 4 kB / 281.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.009883, allocations: 11.94 kB / 281.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.107e-05/0.009914, allocations: 7.969 kB / 281.5 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.009921, allocations: 4 kB / 281.5 MB, free: 12.67 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.828e-05/0.009979, allocations: 139.2 kB / 281.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009979, allocations: 0 / 281.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003097/0.01029, allocations: 35.88 kB / 281.7 MB, free: 12.5 MB / 266.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 8.759e-05/0.01038, allocations: 99.25 kB / 281.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001292/0.01051, allocations: 71.45 kB / 281.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.01051, allocations: 0 / 281.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.103e-05/0.01054, allocations: 19.62 kB / 281.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004382/0.01098, allocations: 54.83 kB / 281.9 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007603/0.01174, allocations: 379.1 kB / 282.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.599e-05/0.01179, allocations: 79.28 kB / 282.4 MB, free: 11.74 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.381e-05/0.01183, allocations: 8.969 kB / 282.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.875e-05/0.01191, allocations: 82.2 kB / 282.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01191, allocations: 0 / 282.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of Templates: time 0.003758/0.01566, allocations: 1.469 MB / 283.9 MB, free: 10.25 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6399071980267763]