Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0014/0.0014, allocations: 183.8 kB / 16.45 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.4 MB / 222.6 MB, free: 9.098 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000731/0.000731, allocations: 92.58 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07407/0.07407, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003947/0.0003947, allocations: 20 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08749/0.0879, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.001598/0.08954, allocations: 1.54 MB / 443.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005362/0.09009, allocations: 472.1 kB / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.558e-05/0.09017, allocations: 0 / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.667e-05/0.09026, allocations: 15.92 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.203e-05/0.09031, allocations: 19.84 kB / 444.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001143/0.09043, allocations: 19.97 kB / 444.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.09054, allocations: 99.58 kB / 444.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.09065, allocations: 29.52 kB / 444.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.22e-05/0.09071, allocations: 31.86 kB / 444.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.544e-05/0.09077, allocations: 39.78 kB / 444.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.83e-05/0.09079, allocations: 4 kB / 444.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.574e-05/0.09082, allocations: 11.94 kB / 444.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.299e-05/0.09083, allocations: 11.98 kB / 444.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.222e-05/0.09086, allocations: 41.64 kB / 444.7 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.432e-05/0.09094, allocations: 72.08 kB / 444.8 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.09095, allocations: 0 / 444.8 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.09096, allocations: 0 / 444.8 MB, free: 14.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.09097, allocations: 0 / 444.8 MB, free: 14.05 MB / 298.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.0003997/0.09137, allocations: 399.1 kB / 445.1 MB, free: 13.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.09141, allocations: 8.031 kB / 445.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.305e-05/0.09145, allocations: 11.91 kB / 445.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.09161, allocations: 198.8 kB / 445.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.09164, allocations: 4.188 kB / 445.4 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.533e-05/0.09167, allocations: 8 kB / 445.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002425/0.09192, allocations: 128.6 kB / 445.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.09194, allocations: 0 / 445.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.09195, allocations: 4 kB / 445.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.09197, allocations: 7.984 kB / 445.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002162/0.09219, allocations: 75.94 kB / 445.6 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004885/0.09268, allocations: 0.5287 MB / 446.1 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000179/0.09288, allocations: 90.55 kB / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.09299, allocations: 40.83 kB / 446.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.09301, allocations: 4 kB / 446.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.09303, allocations: 34.56 kB / 446.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.09304, allocations: 0 / 446.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003697/0.09341, allocations: 133.5 kB / 446.4 MB, free: 12.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.865e-05/0.09344, allocations: 55.41 kB / 446.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.737e-05/0.09351, allocations: 137.8 kB / 446.6 MB, free: 11.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.017e-06/0.09353, allocations: 25.7 kB / 446.6 MB, free: 11.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.963e-05/0.09358, allocations: 119.7 kB / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.0936, allocations: 27.64 kB / 446.8 MB, free: 11.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.09361, allocations: 4 kB / 446.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.632e-05/0.09366, allocations: 326.8 kB / 447.1 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.09378, allocations: 31.98 kB / 447.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.09389, allocations: 72.27 kB / 447.2 MB, free: 11.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.09401, allocations: 51.91 kB / 447.2 MB, free: 11.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.09402, allocations: 0 / 447.2 MB, free: 11.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002625/0.09429, allocations: 145.4 kB / 447.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.09431, allocations: 11.98 kB / 447.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.09432, allocations: 0 / 447.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.09433, allocations: 0 / 447.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.09449, allocations: 31.98 kB / 447.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.09451, allocations: 4 kB / 447.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.762e-05/0.09459, allocations: 27.92 kB / 447.5 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.0946, allocations: 4 kB / 447.5 MB, free: 11.08 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.175e-05/0.09467, allocations: 130.4 kB / 447.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.6e-05/0.0947, allocations: 7.906 kB / 447.6 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.647e-05/0.09473, allocations: 8.375 kB / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.09474, allocations: 0 / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.09475, allocations: 4 kB / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.09476, allocations: 3.984 kB / 447.6 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.0949, allocations: 197.7 kB / 447.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.09491, allocations: 8 kB / 447.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.09504, allocations: 19.98 kB / 447.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.09505, allocations: 4 kB / 447.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.09507, allocations: 3.984 kB / 447.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.09508, allocations: 0 / 447.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.09508, allocations: 0 / 447.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003531/0.09544, allocations: 251.3 kB / 448.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.136e-05/0.09547, allocations: 81.02 kB / 448.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.09551, allocations: 8 kB / 448.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.345e-05/0.09561, allocations: 12.03 kB / 448.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.299e-05/0.09565, allocations: 4 kB / 448.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-06/0.09566, allocations: 0 / 448.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.472e-05/0.0957, allocations: 99.27 kB / 448.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.0957, allocations: 3.938 kB / 448.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002073/0.09591, allocations: 23.84 kB / 448.3 MB, free: 10.14 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.194e-05/0.09598, allocations: 99.23 kB / 448.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002414/0.09623, allocations: 95.91 kB / 448.5 MB, free: 9.934 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.09624, allocations: 192 / 448.5 MB, free: 9.934 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.765e-05/0.09634, allocations: 43.97 kB / 448.5 MB, free: 9.891 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.09666, allocations: 28.67 kB / 448.6 MB, free: 9.863 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005333/0.09721, allocations: 464.9 kB / 449 MB, free: 9.375 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.09733, allocations: 0.7004 MB / 449.7 MB, free: 8.648 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.119e-05/0.09737, allocations: 11.44 kB / 449.7 MB, free: 8.637 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.09738, allocations: 0 / 449.7 MB, free: 8.637 MB / 298.7 MB Notification: Performance of Templates: time 0.002039/0.09942, allocations: 1.249 MB / 451 MB, free: 7.387 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches