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.001202/0.001202, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001401/0.001401, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9918/0.9918, allocations: 173.3 MB / 201.1 MB, free: 8.984 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.873e-06/1.873e-06, allocations: 3.938 kB / 268 MB, free: 6.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.754e-05/2.942e-05, allocations: 2.312 kB / 268 MB, free: 6.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.006616/0.006645, allocations: 1.901 MB / 269.9 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008831/0.007528, allocations: 454.8 kB / 270.3 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.976e-05/0.007628, allocations: 7.938 kB / 270.3 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.007767, allocations: 11.86 kB / 270.3 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.097e-05/0.007848, allocations: 27.72 kB / 270.4 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001929/0.008041, allocations: 31.95 kB / 270.4 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000181/0.008222, allocations: 99.58 kB / 270.5 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.00838, allocations: 33.56 kB / 270.5 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.008511, allocations: 67.81 kB / 270.6 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.483e-05/0.008596, allocations: 27.91 kB / 270.6 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.008626, allocations: 8 kB / 270.6 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.79e-05/0.008644, allocations: 8 kB / 270.6 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.592e-05/0.00872, allocations: 23.91 kB / 270.7 MB, free: 3.59 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.256e-05/0.008773, allocations: 31.92 kB / 270.7 MB, free: 3.559 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002046/0.008977, allocations: 75.66 kB / 270.8 MB, free: 3.484 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.008982, allocations: 0 / 270.8 MB, free: 3.484 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.008984, allocations: 0 / 270.8 MB, free: 3.484 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.00899, allocations: 0 / 270.8 MB, free: 3.484 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.0005851/0.009575, allocations: 432.4 kB / 271.2 MB, free: 3.027 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.009622, allocations: 8.922 kB / 271.2 MB, free: 3.02 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.097e-05/0.009683, allocations: 16.89 kB / 271.2 MB, free: 3.004 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.0099, allocations: 144.4 kB / 271.4 MB, free: 2.836 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.009916, allocations: 8.562 kB / 271.4 MB, free: 2.828 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.282e-05/0.009949, allocations: 4.375 kB / 271.4 MB, free: 2.824 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002618/0.01021, allocations: 129.3 kB / 271.5 MB, free: 2.684 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.01023, allocations: 7.938 kB / 271.5 MB, free: 2.676 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.01024, allocations: 4 kB / 271.5 MB, free: 2.672 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.01025, allocations: 8 kB / 271.5 MB, free: 2.664 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.568e-05/0.01034, allocations: 23.98 kB / 271.5 MB, free: 2.641 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007633/0.0111, allocations: 0.5132 MB / 272 MB, free: 2.082 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.01127, allocations: 71.02 kB / 272.1 MB, free: 2 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.346e-05/0.01133, allocations: 19.69 kB / 272.1 MB, free: 1.977 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.01134, allocations: 0 / 272.1 MB, free: 1.977 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.01138, allocations: 45.33 kB / 272.2 MB, free: 1.922 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.01138, allocations: 0 / 272.2 MB, free: 1.922 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002952/0.01167, allocations: 77.8 kB / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/0.01172, allocations: 55.5 kB / 272.3 MB, free: 1.773 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.01196, allocations: 189.9 kB / 272.5 MB, free: 1.57 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.01197, allocations: 25.7 kB / 272.5 MB, free: 1.539 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.942e-05/0.01206, allocations: 158.7 kB / 272.7 MB, free: 1.379 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.507e-05/0.01209, allocations: 31.69 kB / 272.7 MB, free: 1.348 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.452e-05/0.01214, allocations: 35.36 kB / 272.7 MB, free: 1.305 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.01232, allocations: 0.4884 MB / 273.2 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.316e-05/0.01236, allocations: 15.98 kB / 273.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.962e-05/0.01243, allocations: 58.42 kB / 273.3 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.01254, allocations: 78.36 kB / 273.4 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.01254, allocations: 0 / 273.4 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001841/0.01272, allocations: 113.3 kB / 273.5 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.01275, allocations: 4 kB / 273.5 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.01275, allocations: 4 kB / 273.5 MB, free: 500 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.01278, allocations: 0 / 273.5 MB, free: 500 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.01295, allocations: 32.11 kB / 273.5 MB, free: 468 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.01296, allocations: 0 / 273.5 MB, free: 468 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.635e-05/0.01301, allocations: 19.92 kB / 273.5 MB, free: 448 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.01302, allocations: 4 kB / 273.6 MB, free: 444 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 9.981e-05/0.01312, allocations: 160.5 kB / 273.7 MB, free: 272 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-05/0.01316, allocations: 19.89 kB / 273.7 MB, free: 252 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.571e-05/0.01321, allocations: 8.438 kB / 273.7 MB, free: 244 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.01322, allocations: 0 / 273.7 MB, free: 244 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.01322, allocations: 0 / 273.7 MB, free: 244 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.01323, allocations: 4 kB / 273.7 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.01341, allocations: 140.6 kB / 273.9 MB, free: 64 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.01341, allocations: 0 / 273.9 MB, free: 64 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.01353, allocations: 19.98 kB / 273.9 MB, free: 44 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.01354, allocations: 0 / 273.9 MB, free: 44 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.01356, allocations: 7.938 kB / 273.9 MB, free: 36 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.01357, allocations: 0 / 273.9 MB, free: 36 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.01357, allocations: 0 / 273.9 MB, free: 36 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.01385, allocations: 239.8 kB / 274.1 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.081e-05/0.01387, allocations: 7.953 kB / 274.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.311e-05/0.01389, allocations: 3.938 kB / 274.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.365e-05/0.01397, allocations: 15.98 kB / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.927e-05/0.01402, allocations: 0 / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.01403, allocations: 4 kB / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.231e-05/0.0141, allocations: 146.5 kB / 274.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0141, allocations: 0 / 274.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002729/0.01438, allocations: 23.94 kB / 274.3 MB, free: 15.59 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 0.0001349/0.01451, allocations: 99.28 kB / 274.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001642/0.01468, allocations: 47.61 kB / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.01468, allocations: 256 / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.454e-05/0.01472, allocations: 35.61 kB / 274.5 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/0.01512, allocations: 19.98 kB / 274.5 MB, free: 15.37 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.01614, allocations: 309.9 kB / 274.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.263e-05/0.0162, allocations: 67.33 kB / 274.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.776e-05/0.01625, allocations: 8.5 kB / 274.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.203e-05/0.01629, allocations: 16.5 kB / 274.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of SimCode: time 2.084e-06/0.0163, allocations: 0 / 274.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of Templates: time 0.00472/0.02102, allocations: 1.107 MB / 276 MB, free: 13.84 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: 3.01294366363436]