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.001449/0.001449, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001102/0.001102, allocations: 162.6 kB / 24.99 MB, free: 9.273 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 1.045/1.045, allocations: 177.1 MB / 205.3 MB, free: 5.641 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 2.705e-06/2.705e-06, allocations: 0 / 273 MB, free: 1.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.569e-05/2.839e-05, allocations: 2.312 kB / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.002553/0.002581, allocations: 1.922 MB / 275 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007233/0.003304, allocations: 478.7 kB / 275.4 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.003428, allocations: 4 kB / 275.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.003576, allocations: 11.86 kB / 275.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.9e-05/0.003645, allocations: 31.72 kB / 275.5 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001887/0.003834, allocations: 27.95 kB / 275.5 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.004014, allocations: 107.5 kB / 275.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.004197, allocations: 33.5 kB / 275.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.00432, allocations: 59.89 kB / 275.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.949e-05/0.0044, allocations: 35.89 kB / 275.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.455e-05/0.004424, allocations: 8 kB / 275.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.586e-05/0.00444, allocations: 8 kB / 275.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.505e-05/0.004465, allocations: 19.92 kB / 275.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.947e-05/0.004505, allocations: 31.91 kB / 275.8 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.004654, allocations: 67.73 kB / 275.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.004657, allocations: 0 / 275.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.42e-07/0.004657, allocations: 0 / 275.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.004662, allocations: 0 / 275.9 MB, free: 15.03 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.0004571/0.005119, allocations: 432.4 kB / 276.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.005159, allocations: 12.03 kB / 276.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.778e-05/0.005206, allocations: 16.89 kB / 276.3 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.005381, allocations: 148.3 kB / 276.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.005394, allocations: 8.562 kB / 276.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.691e-05/0.005421, allocations: 12.33 kB / 276.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.005599, allocations: 118.4 kB / 276.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.005608, allocations: 0 / 276.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.00562, allocations: 4 kB / 276.6 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.005629, allocations: 8 kB / 276.6 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.549e-05/0.005695, allocations: 31.92 kB / 276.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005178/0.006213, allocations: 0.5171 MB / 277.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.006332, allocations: 63.09 kB / 277.2 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.668e-05/0.006368, allocations: 19.69 kB / 277.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.367e-06/0.006378, allocations: 0 / 277.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.006401, allocations: 41.33 kB / 277.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 3.186e-06/0.006404, allocations: 3.984 kB / 277.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001897/0.006594, allocations: 85.72 kB / 277.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.006626, allocations: 51.41 kB / 277.4 MB, free: 13.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.868e-05/0.006725, allocations: 188.6 kB / 277.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.006737, allocations: 29.7 kB / 277.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.571e-05/0.006813, allocations: 162.6 kB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.006833, allocations: 23.81 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.006867, allocations: 31.36 kB / 277.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.006986, allocations: 0.4923 MB / 278.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.692e-05/0.007012, allocations: 12 kB / 278.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.849e-05/0.007061, allocations: 62.36 kB / 278.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.806e-05/0.007139, allocations: 82.5 kB / 278.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.007142, allocations: 0 / 278.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001166/0.007259, allocations: 105.5 kB / 278.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.007274, allocations: 8 kB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.00728, allocations: 0 / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.007295, allocations: 0 / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.007413, allocations: 40.05 kB / 278.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.007422, allocations: 4 kB / 278.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.367e-05/0.007455, allocations: 15.86 kB / 278.6 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-06/0.007464, allocations: 4 kB / 278.7 MB, free: 11.97 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.013e-05/0.007544, allocations: 156.6 kB / 278.8 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.007565, allocations: 15.89 kB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.94e-05/0.007594, allocations: 12.44 kB / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.007596, allocations: 0 / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.007601, allocations: 0 / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.007605, allocations: 4 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.007733, allocations: 140.6 kB / 279 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.007735, allocations: 4 kB / 279 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.932e-05/0.007804, allocations: 19.92 kB / 279 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.007806, allocations: 0 / 279 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.007826, allocations: 11.94 kB / 279 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.007827, allocations: 0 / 279 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.007828, allocations: 0 / 279 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.008018, allocations: 223.9 kB / 279.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.461e-05/0.008032, allocations: 11.89 kB / 279.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.008048, allocations: 7.938 kB / 279.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.748e-05/0.008086, allocations: 11.98 kB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.008125, allocations: 0 / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.00813, allocations: 7.984 kB / 279.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.845e-05/0.008179, allocations: 135.2 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008179, allocations: 0 / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001528/0.008332, allocations: 23.94 kB / 279.4 MB, free: 11.13 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 6.913e-05/0.008401, allocations: 95.25 kB / 279.5 MB, free: 11.03 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001049/0.008506, allocations: 55.59 kB / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.008507, allocations: 4.25 kB / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.818e-05/0.008535, allocations: 23.67 kB / 279.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.008766, allocations: 23.53 kB / 279.6 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007054/0.009471, allocations: 309.9 kB / 279.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.2e-05/0.009513, allocations: 67.33 kB / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.704e-05/0.00954, allocations: 8.5 kB / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.215e-05/0.009572, allocations: 12.5 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.009573, allocations: 3.938 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of Templates: time 0.002703/0.01228, allocations: 1.06 MB / 281.1 MB, free: 9.438 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.8830393562093377]