Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.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.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009162/0.0009196, allocations: 175.5 kB / 16.45 MB, free: 5.684 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.53/1.53, allocations: 205.4 MB / 222.6 MB, free: 9.102 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.0008055/0.0008058, allocations: 96.94 kB / 270.9 MB, free: 8.34 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.07789/0.07789, allocations: 12.59 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004043/0.0004044, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07584/0.07626, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.00174/0.07805, allocations: 1.781 MB / 444.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008863/0.07896, allocations: 0.6562 MB / 444.8 MB, free: 14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.07908, allocations: 7.938 kB / 444.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002375/0.07935, allocations: 31.83 kB / 444.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001077/0.07947, allocations: 39.7 kB / 444.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002755/0.07975, allocations: 95.88 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.07998, allocations: 307.2 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.08011, allocations: 64.09 kB / 445.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.08027, allocations: 115.5 kB / 445.4 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.08043, allocations: 131.5 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.571e-05/0.08047, allocations: 16 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.637e-05/0.08052, allocations: 16 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.877e-05/0.08058, allocations: 63.84 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.811e-05/0.08063, allocations: 61.58 kB / 445.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.08078, allocations: 199.8 kB / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.08079, allocations: 0 / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.0808, allocations: 0 / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.08081, allocations: 3.938 kB / 445.9 MB, free: 12.86 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0009035/0.08172, allocations: 0.557 MB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.08176, allocations: 8.031 kB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.085e-05/0.08183, allocations: 31.72 kB / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.08206, allocations: 255.1 kB / 446.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/0.08223, allocations: 141.6 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.594e-05/0.08228, allocations: 24 kB / 446.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007474/0.08303, allocations: 375.5 kB / 447.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.08306, allocations: 7.906 kB / 447.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.0831, allocations: 8 kB / 447.3 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.08311, allocations: 4 kB / 447.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.08425, allocations: 0.5135 MB / 447.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.08564, allocations: 1.031 MB / 448.9 MB, free: 9.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.08666, allocations: 347.1 kB / 449.2 MB, free: 9.383 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004445/0.08712, allocations: 197.2 kB / 449.4 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.08715, allocations: 8.219 kB / 449.4 MB, free: 9.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.427e-05/0.08718, allocations: 38.73 kB / 449.4 MB, free: 9.133 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.292e-06/0.08718, allocations: 0 / 449.4 MB, free: 9.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02551/0.1127, allocations: 6.667 MB / 456.1 MB, free: 2.371 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.1128, allocations: 59.84 kB / 456.2 MB, free: 2.301 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.113, allocations: 194.3 kB / 456.4 MB, free: 2.102 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.836e-05/0.113, allocations: 37.7 kB / 456.4 MB, free: 2.059 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.343e-05/0.1131, allocations: 148.6 kB / 456.5 MB, free: 1.906 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.739e-05/0.1132, allocations: 181.4 kB / 456.7 MB, free: 1.727 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.254e-05/0.1132, allocations: 8 kB / 456.7 MB, free: 1.719 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.33e-05/0.1133, allocations: 338.8 kB / 457.1 MB, free: 1.379 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.1144, allocations: 0.4891 MB / 457.5 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.1156, allocations: 0.5529 MB / 458.1 MB, free: 328 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/0.1167, allocations: 445.9 kB / 458.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1168, allocations: 0 / 458.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002751/0.1195, allocations: 1.053 MB / 459.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1195, allocations: 4 kB / 459.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1196, allocations: 0 / 459.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1196, allocations: 4 kB / 459.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.1206, allocations: 187.8 kB / 459.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.1206, allocations: 4 kB / 459.8 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007144/0.1213, allocations: 107.9 kB / 459.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/0.1214, allocations: 19.95 kB / 459.9 MB, free: 14.51 MB / 314.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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 0.0002296/0.1216, allocations: 174.4 kB / 460.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.314e-05/0.1217, allocations: 31.61 kB / 460.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.1218, allocations: 51.25 kB / 460.2 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1219, allocations: 4 kB / 460.2 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.1219, allocations: 0 / 460.2 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.1219, allocations: 3.984 kB / 460.2 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0043/0.1262, allocations: 2.002 MB / 462.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.1262, allocations: 8 kB / 462.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007168/0.1269, allocations: 168.5 kB / 462.3 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-05/0.127, allocations: 12 kB / 462.4 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.882e-05/0.127, allocations: 16 kB / 462.4 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.244e-05/0.127, allocations: 15.92 kB / 462.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.1271, allocations: 15.94 kB / 462.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002858/0.1299, allocations: 1.334 MB / 463.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.1301, allocations: 140.8 kB / 463.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.685e-05/0.1302, allocations: 27.98 kB / 463.9 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000522/0.1307, allocations: 87.92 kB / 464 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/0.1309, allocations: 99.66 kB / 464.1 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/0.131, allocations: 16 kB / 464.1 MB, free: 9.992 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001681/0.1312, allocations: 148.3 kB / 464.2 MB, free: 9.848 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1312, allocations: 0 / 464.2 MB, free: 9.848 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004555/0.1316, allocations: 96 kB / 464.3 MB, free: 9.754 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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 0.0001622/0.1318, allocations: 131 kB / 464.5 MB, free: 9.617 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00236/0.1342, allocations: 0.9196 MB / 465.4 MB, free: 8.699 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1342, allocations: 192 / 465.4 MB, free: 8.699 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009855/0.1352, allocations: 369.5 kB / 465.7 MB, free: 8.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005966/0.1358, allocations: 53.39 kB / 465.8 MB, free: 8.289 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.1379, allocations: 1.201 MB / 467 MB, free: 6.953 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.1382, allocations: 0.7804 MB / 467.8 MB, free: 6.148 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.1385, allocations: 31.44 kB / 467.8 MB, free: 6.121 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1385, allocations: 0 / 467.8 MB, free: 6.121 MB / 314.7 MB Notification: Performance of Templates: time 0.007631/0.1462, allocations: 5.514 MB / 473.3 MB, free: 0.5977 MB / 314.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches