Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.0008174/0.0008174, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001069/0.001069, allocations: 164.4 kB / 24.82 MB, free: 9.266 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.9886/0.9886, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.346e-05/1.502e-05, allocations: 2.312 kB / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.002761/0.002776, allocations: 1.904 MB / 275.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009448/0.00372, allocations: 478.7 kB / 275.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.003832, allocations: 4 kB / 275.7 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.003966, allocations: 15.8 kB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.728e-05/0.004043, allocations: 27.78 kB / 275.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001708/0.004214, allocations: 27.97 kB / 275.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001562/0.00437, allocations: 111.5 kB / 275.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.00451, allocations: 29.52 kB / 276 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.00462, allocations: 59.88 kB / 276 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.734e-05/0.004697, allocations: 35.89 kB / 276 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.00472, allocations: 11.94 kB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.558e-05/0.004736, allocations: 8 kB / 276.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.884e-05/0.004765, allocations: 19.92 kB / 276.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.915e-05/0.004804, allocations: 31.91 kB / 276.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.004961, allocations: 67.73 kB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.004963, allocations: 4 kB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.61e-07/0.004964, allocations: 0 / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.004968, allocations: 0 / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0004553/0.005423, allocations: 428.4 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.005475, allocations: 12.03 kB / 276.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.085e-05/0.005515, allocations: 16.89 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.005666, allocations: 144.4 kB / 276.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.005681, allocations: 12.56 kB / 276.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.845e-05/0.00571, allocations: 12.33 kB / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.005876, allocations: 118.4 kB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.005887, allocations: 4 kB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.005896, allocations: 3.938 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.005902, allocations: 0 / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.546e-05/0.005947, allocations: 27.23 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005099/0.006457, allocations: 0.5248 MB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.006564, allocations: 63.03 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.544e-05/0.006589, allocations: 19.83 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.226e-06/0.006597, allocations: 4 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.006626, allocations: 45.31 kB / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.006627, allocations: 0 / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001609/0.006788, allocations: 73.8 kB / 277.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.00682, allocations: 51.41 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.933e-05/0.006919, allocations: 184.8 kB / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.006934, allocations: 29.64 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.524e-05/0.007009, allocations: 166.6 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.007029, allocations: 27.8 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.215e-05/0.007071, allocations: 31.36 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.007219, allocations: 0.4962 MB / 278.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.845e-05/0.007238, allocations: 8 kB / 278.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.295e-05/0.007281, allocations: 54.41 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.612e-05/0.007357, allocations: 74.36 kB / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.00736, allocations: 4 kB / 278.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001128/0.007473, allocations: 93.55 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.007487, allocations: 8.031 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.007494, allocations: 0 / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.007512, allocations: 4 kB / 278.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.434e-05/0.007606, allocations: 27.92 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.007613, allocations: 7.984 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.557e-05/0.007648, allocations: 11.94 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.007655, allocations: 7.938 kB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.343e-05/0.007738, allocations: 168.5 kB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.007757, allocations: 11.89 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.914e-05/0.007786, allocations: 12.44 kB / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.007791, allocations: 4 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.007793, allocations: 0 / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.007799, allocations: 3.984 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001231/0.007922, allocations: 117.2 kB / 279.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.007924, allocations: 0 / 279.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.793e-05/0.007992, allocations: 19.98 kB / 279.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.007993, allocations: 0 / 279.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.008005, allocations: 0 / 279.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.00801, allocations: 7.938 kB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.008012, allocations: 4 kB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001884/0.0082, allocations: 231.8 kB / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.483e-05/0.008215, allocations: 11.89 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.00823, allocations: 4 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.652e-05/0.008277, allocations: 7.938 kB / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/0.008315, allocations: 3.984 kB / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.00832, allocations: 4 kB / 279.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.151e-05/0.008372, allocations: 135.2 kB / 279.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008372, allocations: 0 / 279.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001725/0.008544, allocations: 20 kB / 279.7 MB, free: 10.63 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 9.887e-05/0.008643, allocations: 99.25 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001174/0.00876, allocations: 47.59 kB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.008762, allocations: 0 / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.084e-05/0.008793, allocations: 23.62 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.009044, allocations: 22.61 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006372/0.009681, allocations: 318.2 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.831e-05/0.009729, allocations: 63.34 kB / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.732e-05/0.009767, allocations: 12.47 kB / 280.3 MB, free: 9.992 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.603e-05/0.009843, allocations: 78.2 kB / 280.3 MB, free: 9.914 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.009844, allocations: 0 / 280.3 MB, free: 9.914 MB / 266.7 MB Notification: Performance of Templates: time 0.00306/0.0129, allocations: 1.145 MB / 281.5 MB, free: 8.789 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.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.7477076090872288]