Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.001075/0.001075, allocations: 78.28 kB / 21.42 MB, free: 3.07 MB / 18.57 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.001188/0.001188, allocations: 150.6 kB / 24.8 MB, free: 9.332 MB / 18.57 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.9902/0.9902, allocations: 173.3 MB / 201.4 MB, free: 9.25 MB / 186.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 268.4 MB, free: 6.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.609e-05/1.748e-05, allocations: 10.25 kB / 268.4 MB, free: 6.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.002187/0.002204, allocations: 1.899 MB / 270.3 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007429/0.002947, allocations: 454.8 kB / 270.7 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.893e-05/0.003046, allocations: 0 / 270.7 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.003148, allocations: 15.86 kB / 270.7 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.502e-05/0.003213, allocations: 31.66 kB / 270.8 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001484/0.003361, allocations: 27.97 kB / 270.8 MB, free: 3.816 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001264/0.003488, allocations: 103.6 kB / 270.9 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.0036, allocations: 33.58 kB / 270.9 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.947e-05/0.003689, allocations: 59.81 kB / 271 MB, free: 3.617 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.182e-05/0.003751, allocations: 35.95 kB / 271 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.00377, allocations: 11.94 kB / 271 MB, free: 3.57 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.222e-05/0.003782, allocations: 8 kB / 271 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.081e-05/0.003803, allocations: 11.98 kB / 271.1 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.003835, allocations: 35.91 kB / 271.1 MB, free: 3.516 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.003971, allocations: 75.61 kB / 271.2 MB, free: 3.441 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.003974, allocations: 0 / 271.2 MB, free: 3.441 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.003975, allocations: 0 / 271.2 MB, free: 3.441 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.536e-06/0.003979, allocations: 0 / 271.2 MB, free: 3.441 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0003823/0.004361, allocations: 436.4 kB / 271.6 MB, free: 2.98 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.004395, allocations: 8.922 kB / 271.6 MB, free: 2.973 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.339e-05/0.004428, allocations: 16.89 kB / 271.6 MB, free: 2.957 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.004566, allocations: 144.4 kB / 271.8 MB, free: 2.789 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-06/0.004576, allocations: 4.562 kB / 271.8 MB, free: 2.785 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.004596, allocations: 8.375 kB / 271.8 MB, free: 2.777 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001463/0.004743, allocations: 117.2 kB / 271.9 MB, free: 2.648 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.004752, allocations: 3.953 kB / 271.9 MB, free: 2.645 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.004763, allocations: 12 kB / 271.9 MB, free: 2.633 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.004768, allocations: 0 / 271.9 MB, free: 2.633 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.932e-05/0.004807, allocations: 23.92 kB / 271.9 MB, free: 2.609 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004424/0.005249, allocations: 0.521 MB / 272.4 MB, free: 2.043 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.841e-05/0.005338, allocations: 63.09 kB / 272.5 MB, free: 1.969 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.245e-05/0.00536, allocations: 19.83 kB / 272.5 MB, free: 1.945 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.003e-06/0.005367, allocations: 0 / 272.5 MB, free: 1.945 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.005386, allocations: 41.33 kB / 272.6 MB, free: 1.895 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.005387, allocations: 4 kB / 272.6 MB, free: 1.891 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001321/0.005519, allocations: 73.73 kB / 272.6 MB, free: 1.812 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.211e-05/0.005541, allocations: 51.41 kB / 272.7 MB, free: 1.75 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.016e-05/0.005621, allocations: 193.2 kB / 272.9 MB, free: 1.547 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.718e-06/0.005631, allocations: 29.64 kB / 272.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.944e-05/0.00569, allocations: 158.7 kB / 273.1 MB, free: 1.352 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.005707, allocations: 27.73 kB / 273.1 MB, free: 1.324 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-05/0.005743, allocations: 35.36 kB / 273.1 MB, free: 1.281 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.005852, allocations: 0.4923 MB / 273.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.261e-05/0.005874, allocations: 4 kB / 273.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.621e-05/0.005911, allocations: 65.66 kB / 273.7 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.272e-05/0.005973, allocations: 82.22 kB / 273.8 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.005975, allocations: 0 / 273.8 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 9.636e-05/0.006072, allocations: 101.4 kB / 273.9 MB, free: 496 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.006082, allocations: 8 kB / 273.9 MB, free: 488 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.006087, allocations: 0 / 273.9 MB, free: 488 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.006101, allocations: 12.12 kB / 273.9 MB, free: 476 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.843e-05/0.00619, allocations: 23.98 kB / 273.9 MB, free: 452 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.006194, allocations: 7.938 kB / 273.9 MB, free: 444 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.063e-05/0.006224, allocations: 11.92 kB / 273.9 MB, free: 432 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.006231, allocations: 8 kB / 273.9 MB, free: 424 kB / 250.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 6.235e-05/0.006293, allocations: 152.6 kB / 274.1 MB, free: 260 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.211e-05/0.006315, allocations: 19.89 kB / 274.1 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.00634, allocations: 8.438 kB / 274.1 MB, free: 232 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.006342, allocations: 0 / 274.1 MB, free: 232 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.006345, allocations: 8 kB / 274.1 MB, free: 224 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.006347, allocations: 0 / 274.1 MB, free: 224 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.573e-05/0.006443, allocations: 117.2 kB / 274.2 MB, free: 80 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.006445, allocations: 0 / 274.2 MB, free: 80 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.94e-05/0.006514, allocations: 19.94 kB / 274.3 MB, free: 60 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.006516, allocations: 0 / 274.3 MB, free: 60 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.006528, allocations: 3.984 kB / 274.3 MB, free: 56 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.006529, allocations: 3.938 kB / 274.3 MB, free: 52 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.00653, allocations: 0 / 274.3 MB, free: 52 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/0.006704, allocations: 227.8 kB / 274.5 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.237e-05/0.006716, allocations: 11.94 kB / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.004e-05/0.006726, allocations: 4 kB / 274.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.087e-05/0.006767, allocations: 7.938 kB / 274.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.327e-05/0.0068, allocations: 7.984 kB / 274.5 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.006803, allocations: 0 / 274.5 MB, free: 15.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.268e-05/0.006846, allocations: 147 kB / 274.7 MB, free: 15.63 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006846, allocations: 0 / 274.7 MB, free: 15.63 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001577/0.007004, allocations: 20 kB / 274.7 MB, free: 15.61 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 7.676e-05/0.00708, allocations: 99.19 kB / 274.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.748e-05/0.007168, allocations: 51.66 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.007169, allocations: 0 / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.329e-05/0.007192, allocations: 23.67 kB / 274.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.007403, allocations: 20.53 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005624/0.007965, allocations: 322.1 kB / 275.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.573e-05/0.008001, allocations: 63.34 kB / 275.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.302e-05/0.008034, allocations: 4.5 kB / 275.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.061e-05/0.008094, allocations: 86.19 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of SimCode: time 9.12e-07/0.008095, allocations: 3.938 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of Templates: time 0.00261/0.01071, allocations: 1.135 MB / 276.5 MB, free: 13.77 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.695686507038772]