Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001187/0.001187, allocations: 176.5 kB / 16.77 MB, free: 5.047 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.403/1.403, allocations: 205 MB / 222.6 MB, free: 9.152 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.0007395/0.0007396, allocations: 87.92 kB / 270.5 MB, free: 8.676 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.06552/0.06552, allocations: 12.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003551/0.0003551, allocations: 16 kB / 391.7 MB, free: 66.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0751/0.07547, allocations: 49.98 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.001929/0.07744, allocations: 1.867 MB / 443.6 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009602/0.07842, allocations: 0.6753 MB / 444.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000158/0.0786, allocations: 7.938 kB / 444.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002546/0.07887, allocations: 39.77 kB / 444.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.07903, allocations: 39.75 kB / 444.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.07935, allocations: 111.9 kB / 444.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002615/0.07962, allocations: 323.2 kB / 444.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.07977, allocations: 64.39 kB / 444.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.07995, allocations: 123.5 kB / 444.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.08012, allocations: 147.4 kB / 445.1 MB, free: 13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.618e-05/0.08018, allocations: 16 kB / 445.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.754e-05/0.08022, allocations: 16 kB / 445.1 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.773e-05/0.0803, allocations: 67.73 kB / 445.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.219e-05/0.08038, allocations: 107.4 kB / 445.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.08059, allocations: 263 kB / 445.5 MB, free: 12.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.0806, allocations: 0 / 445.5 MB, free: 12.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.08061, allocations: 0 / 445.5 MB, free: 12.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.08063, allocations: 0 / 445.5 MB, free: 12.54 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.0009133/0.08155, allocations: 0.5495 MB / 446.1 MB, free: 11.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.08159, allocations: 8.031 kB / 446.1 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.624e-05/0.08167, allocations: 28.66 kB / 446.1 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.08191, allocations: 256.3 kB / 446.4 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000165/0.08208, allocations: 142.2 kB / 446.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.791e-05/0.08214, allocations: 27.94 kB / 446.5 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006879/0.08283, allocations: 379.6 kB / 446.9 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.08286, allocations: 7.984 kB / 446.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/0.08289, allocations: 8 kB / 446.9 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.0829, allocations: 4 kB / 446.9 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.08406, allocations: 0.5135 MB / 447.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001391/0.08547, allocations: 1.03 MB / 448.5 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009946/0.08648, allocations: 359.1 kB / 448.8 MB, free: 9.055 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004193/0.08691, allocations: 189.2 kB / 449 MB, free: 8.867 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.663e-05/0.08695, allocations: 4.234 kB / 449 MB, free: 8.863 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.291e-05/0.08697, allocations: 38.8 kB / 449 MB, free: 8.816 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.643e-06/0.08698, allocations: 0 / 449 MB, free: 8.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02431/0.1113, allocations: 6.671 MB / 455.7 MB, free: 2.051 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.839e-05/0.1113, allocations: 59.78 kB / 455.8 MB, free: 1.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.1116, allocations: 194.3 kB / 456 MB, free: 1.781 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.828e-05/0.1116, allocations: 33.7 kB / 456 MB, free: 1.742 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.058e-05/0.1117, allocations: 164.5 kB / 456.2 MB, free: 1.574 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.1118, allocations: 169.5 kB / 456.3 MB, free: 1.406 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.865e-05/0.1119, allocations: 49.69 kB / 456.4 MB, free: 1.352 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.133e-05/0.112, allocations: 338.8 kB / 456.7 MB, free: 1.012 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.1131, allocations: 0.4969 MB / 457.2 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/0.1143, allocations: 0.5567 MB / 457.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002318/0.1166, allocations: 0.8775 MB / 458.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1166, allocations: 0 / 458.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002687/0.1193, allocations: 1.061 MB / 459.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.1193, allocations: 7.938 kB / 459.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.1193, allocations: 3.938 kB / 459.7 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.1194, allocations: 7.938 kB / 459.7 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009543/0.1203, allocations: 183.8 kB / 459.9 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.1203, allocations: 4 kB / 459.9 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006796/0.121, allocations: 107.9 kB / 460 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.351e-05/0.1211, allocations: 16 kB / 460 MB, free: 13.66 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.noWphase,kinematicPTP.moving[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002191/0.1213, allocations: 162.9 kB / 460.2 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.069e-05/0.1214, allocations: 23.72 kB / 460.2 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.1215, allocations: 51.25 kB / 460.2 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.1215, allocations: 7.984 kB / 460.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1216, allocations: 0 / 460.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/0.1218, allocations: 160.7 kB / 460.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.663e-05/0.1218, allocations: 12 kB / 460.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006683/0.1225, allocations: 95.89 kB / 460.5 MB, free: 13.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.1228, allocations: 76.33 kB / 460.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003164/0.1259, allocations: 1.093 MB / 461.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003911/0.1299, allocations: 1.658 MB / 463.3 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001242/0.1311, allocations: 499.2 kB / 463.8 MB, free: 9.785 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001529/0.1313, allocations: 152.3 kB / 464 MB, free: 9.637 MB / 314.7 MB Notification: Performance of Backend: time 7.82e-07/0.1313, allocations: 0 / 464 MB, free: 9.637 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.1331, allocations: 0.7396 MB / 464.7 MB, free: 8.891 MB / 314.7 MB Notification: Performance of SimCode: time 0.001384/0.1345, allocations: 1.17 MB / 465.9 MB, free: 7.676 MB / 314.7 MB Notification: Performance of Templates: time 0.01291/0.1474, allocations: 7.956 MB / 473.8 MB, free: 15.72 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches