Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.00127/0.00127, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00204/0.00331, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001405/0.001405, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001857/0.003262, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9951/0.9951, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08027/1.075, allocations: 52.49 MB / 238.3 MB, free: 4.434 MB / 234.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: 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.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 239.5 MB, free: 3.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.489e-05/2.653e-05, allocations: 2.312 kB / 239.5 MB, free: 3.203 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003711/0.003738, allocations: 2.147 MB / 241.7 MB, free: 1.047 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008768/0.004615, allocations: 0.5063 MB / 242.2 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.00473, allocations: 7.938 kB / 242.2 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 7.948e-05/0.00481, allocations: 19.73 kB / 242.2 MB, free: 0.5078 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.47e-05/0.004894, allocations: 35.72 kB / 242.2 MB, free: 484 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.005116, allocations: 51.86 kB / 242.3 MB, free: 432 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001945/0.005311, allocations: 135.4 kB / 242.4 MB, free: 296 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.005438, allocations: 38.59 kB / 242.5 MB, free: 252 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.005583, allocations: 91.78 kB / 242.5 MB, free: 160 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.818e-05/0.005672, allocations: 39.89 kB / 242.6 MB, free: 120 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.034e-05/0.005702, allocations: 8 kB / 242.6 MB, free: 112 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.878e-05/0.005721, allocations: 12 kB / 242.6 MB, free: 100 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.94e-05/0.00575, allocations: 19.94 kB / 242.6 MB, free: 80 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.661e-05/0.005797, allocations: 35.88 kB / 242.7 MB, free: 44 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.005988, allocations: 91.7 kB / 242.7 MB, free: 15.95 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.35e-05/0.006001, allocations: 0 / 242.7 MB, free: 15.95 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.006003, allocations: 0 / 242.7 MB, free: 15.95 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.00602, allocations: 0 / 242.7 MB, free: 15.95 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.0005087/0.006528, allocations: 356 kB / 243.1 MB, free: 15.58 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.00656, allocations: 8.031 kB / 243.1 MB, free: 15.57 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.826e-05/0.006608, allocations: 20.92 kB / 243.1 MB, free: 15.55 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.006812, allocations: 153.5 kB / 243.3 MB, free: 15.38 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.006825, allocations: 8.375 kB / 243.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.006856, allocations: 12.38 kB / 243.3 MB, free: 15.36 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.007157, allocations: 199.6 kB / 243.5 MB, free: 15.13 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.00717, allocations: 8.141 kB / 243.5 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.007182, allocations: 4.375 kB / 243.5 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.007191, allocations: 7.938 kB / 243.5 MB, free: 15.11 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.329e-05/0.007264, allocations: 31.92 kB / 243.5 MB, free: 15.08 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004926/0.007757, allocations: 450 kB / 244 MB, free: 14.61 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000202/0.007959, allocations: 107.6 kB / 244.1 MB, free: 14.47 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.046e-05/0.008009, allocations: 42.59 kB / 244.1 MB, free: 14.42 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.008033, allocations: 4 kB / 244.1 MB, free: 14.42 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.008062, allocations: 42.55 kB / 244.2 MB, free: 14.37 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.934e-06/0.008064, allocations: 0 / 244.2 MB, free: 14.37 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002176/0.008282, allocations: 97.53 kB / 244.3 MB, free: 14.27 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.464e-05/0.008346, allocations: 110.8 kB / 244.4 MB, free: 14.13 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.05e-05/0.008437, allocations: 146.7 kB / 244.5 MB, free: 13.98 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.008451, allocations: 25.7 kB / 244.5 MB, free: 13.95 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.913e-05/0.00851, allocations: 115.8 kB / 244.7 MB, free: 13.83 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.00853, allocations: 23.83 kB / 244.7 MB, free: 13.8 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-05/0.008572, allocations: 25.72 kB / 244.7 MB, free: 13.77 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.45e-05/0.008666, allocations: 330.7 kB / 245 MB, free: 13.44 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.024e-05/0.008686, allocations: 4 kB / 245 MB, free: 13.44 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.362e-05/0.00874, allocations: 67.66 kB / 245.1 MB, free: 13.34 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.072e-05/0.008831, allocations: 82.89 kB / 245.2 MB, free: 13.24 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.008833, allocations: 3.938 kB / 245.2 MB, free: 13.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001227/0.008956, allocations: 81.73 kB / 245.3 MB, free: 13.15 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.008971, allocations: 12.02 kB / 245.3 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.008977, allocations: 4 kB / 245.3 MB, free: 13.13 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.008987, allocations: 0 / 245.3 MB, free: 13.13 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.009138, allocations: 35.08 kB / 245.3 MB, free: 13.1 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.009143, allocations: 4 kB / 245.3 MB, free: 13.1 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.01e-05/0.009203, allocations: 15.88 kB / 245.3 MB, free: 13.08 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.00921, allocations: 4 kB / 245.3 MB, free: 13.08 MB / 250.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.522e-05/0.009286, allocations: 117.8 kB / 245.5 MB, free: 12.95 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.009414, allocations: 77.58 kB / 245.5 MB, free: 12.87 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.355e-05/0.009447, allocations: 20.78 kB / 245.5 MB, free: 12.85 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.00945, allocations: 0 / 245.5 MB, free: 12.85 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.009452, allocations: 0 / 245.5 MB, free: 12.85 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.009456, allocations: 4 kB / 245.6 MB, free: 12.85 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.00965, allocations: 105.7 kB / 245.7 MB, free: 12.73 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.009653, allocations: 0 / 245.7 MB, free: 12.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002064/0.009859, allocations: 47.95 kB / 245.7 MB, free: 12.68 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.749e-05/0.009877, allocations: 7.953 kB / 245.7 MB, free: 12.67 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.009881, allocations: 4 kB / 245.7 MB, free: 12.67 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.009894, allocations: 0 / 245.7 MB, free: 12.67 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.009896, allocations: 4 kB / 245.7 MB, free: 12.66 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.009898, allocations: 4 kB / 245.7 MB, free: 12.66 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001717/0.01007, allocations: 243.5 kB / 246 MB, free: 12.4 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.01009, allocations: 7.938 kB / 246 MB, free: 12.39 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.0102, allocations: 11.98 kB / 246 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.709e-05/0.01023, allocations: 0 / 246 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.01024, allocations: 4 kB / 246 MB, free: 12.38 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.976e-05/0.01027, allocations: 24.83 kB / 246 MB, free: 12.35 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01027, allocations: 0 / 246 MB, free: 12.35 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002965/0.01056, allocations: 24 kB / 246 MB, free: 12.33 MB / 250.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.0001016/0.01066, allocations: 100.3 kB / 246.1 MB, free: 12.22 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001191/0.01078, allocations: 52.72 kB / 246.2 MB, free: 12.17 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.01079, allocations: 7.938 kB / 246.2 MB, free: 12.16 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.549e-05/0.01082, allocations: 16.84 kB / 246.2 MB, free: 12.14 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003967/0.01121, allocations: 66.2 kB / 246.3 MB, free: 12.08 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.01306, allocations: 332.3 kB / 246.6 MB, free: 11.72 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.44e-05/0.0131, allocations: 75.33 kB / 246.7 MB, free: 11.63 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.957e-05/0.01314, allocations: 12.97 kB / 246.7 MB, free: 11.61 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.698e-05/0.01321, allocations: 71.38 kB / 246.7 MB, free: 11.54 MB / 250.7 MB Notification: Performance of SimCode: time 1.203e-06/0.01321, allocations: 0 / 246.7 MB, free: 11.54 MB / 250.7 MB Notification: Performance of Templates: time 0.003005/0.01621, allocations: 1.454 MB / 248.2 MB, free: 10.15 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.4009099071845412]