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.000947/0.0009468, allocations: 185 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.318/1.318, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0008125/0.0008123, allocations: 96.86 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.06828/0.06828, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004285/0.0004286, allocations: 20 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0749/0.07535, allocations: 50.37 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.001919/0.07732, allocations: 1.782 MB / 444.8 MB, free: 14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009576/0.0783, allocations: 0.6523 MB / 445.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.07848, allocations: 7.938 kB / 445.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002224/0.07871, allocations: 27.83 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001508/0.07888, allocations: 43.69 kB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000307/0.07919, allocations: 91.89 kB / 445.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002629/0.07946, allocations: 303.2 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.07961, allocations: 60.09 kB / 446 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.0798, allocations: 119.5 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.07998, allocations: 143.4 kB / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.2e-05/0.08003, allocations: 16 kB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.803e-05/0.08008, allocations: 16 kB / 446.3 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.882e-05/0.08014, allocations: 59.8 kB / 446.3 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.267e-05/0.08019, allocations: 57.64 kB / 446.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.08035, allocations: 207.7 kB / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.08036, allocations: 3.938 kB / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.08037, allocations: 3.938 kB / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.08038, allocations: 0 / 446.6 MB, free: 12.2 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.0009239/0.08131, allocations: 0.5455 MB / 447.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.08135, allocations: 8.031 kB / 447.2 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.464e-05/0.08143, allocations: 35.7 kB / 447.2 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002463/0.08169, allocations: 243.2 kB / 447.4 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.08187, allocations: 149.6 kB / 447.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/0.08192, allocations: 20 kB / 447.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007255/0.08265, allocations: 383.5 kB / 448 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.08268, allocations: 3.906 kB / 448 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/0.08271, allocations: 12 kB / 448 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.08273, allocations: 4 kB / 448 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.0839, allocations: 0.5057 MB / 448.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.08531, allocations: 1.031 MB / 449.5 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.08637, allocations: 351.1 kB / 449.9 MB, free: 8.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004414/0.08682, allocations: 193.2 kB / 450.1 MB, free: 8.539 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.816e-05/0.08687, allocations: 8.172 kB / 450.1 MB, free: 8.531 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.08689, allocations: 34.8 kB / 450.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.643e-06/0.0869, allocations: 0 / 450.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02553/0.1124, allocations: 6.675 MB / 456.8 MB, free: 1.719 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.1125, allocations: 59.84 kB / 456.8 MB, free: 1.648 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002046/0.1127, allocations: 194.3 kB / 457 MB, free: 1.449 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.107e-05/0.1128, allocations: 37.7 kB / 457.1 MB, free: 1.406 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.517e-05/0.1129, allocations: 152.6 kB / 457.2 MB, free: 1.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.113, allocations: 173.5 kB / 457.4 MB, free: 1.078 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.113, allocations: 12 kB / 457.4 MB, free: 1.066 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.01e-05/0.1131, allocations: 334.8 kB / 457.7 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.1143, allocations: 0.493 MB / 458.2 MB, free: 244 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/0.1156, allocations: 0.5529 MB / 458.8 MB, free: 15.67 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.1168, allocations: 441.9 kB / 459.2 MB, free: 15.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1169, allocations: 0 / 459.2 MB, free: 15.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002882/0.1197, allocations: 1.053 MB / 460.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.1198, allocations: 8 kB / 460.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.1198, allocations: 0 / 460.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.1198, allocations: 4 kB / 460.3 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.1208, allocations: 195.8 kB / 460.4 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.1209, allocations: 4 kB / 460.4 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007319/0.1216, allocations: 103.9 kB / 460.5 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.979e-05/0.1217, allocations: 19.95 kB / 460.6 MB, free: 13.85 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.0002608/0.1219, allocations: 166.4 kB / 460.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.309e-05/0.122, allocations: 35.56 kB / 460.8 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.1222, allocations: 51.3 kB / 460.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.1222, allocations: 4 kB / 460.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.1222, allocations: 4 kB / 460.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1222, allocations: 0 / 460.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004295/0.1265, allocations: 1.998 MB / 462.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.549e-05/0.1265, allocations: 8 kB / 462.8 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007093/0.1273, allocations: 163.9 kB / 463 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.656e-05/0.1273, allocations: 15.94 kB / 463 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.343e-05/0.1273, allocations: 27.92 kB / 463 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-05/0.1274, allocations: 12 kB / 463 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.1274, allocations: 11.94 kB / 463.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002909/0.1303, allocations: 1.334 MB / 464.4 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002009/0.1305, allocations: 144.8 kB / 464.5 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.082e-05/0.1306, allocations: 16 kB / 464.5 MB, free: 9.547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005522/0.1311, allocations: 95.91 kB / 464.6 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.1313, allocations: 91.67 kB / 464.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.1314, allocations: 24 kB / 464.8 MB, free: 9.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001637/0.1315, allocations: 156.3 kB / 464.9 MB, free: 9.188 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1315, allocations: 0 / 464.9 MB, free: 9.188 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004896/0.132, allocations: 96 kB / 465 MB, free: 9.094 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.0001537/0.1322, allocations: 123 kB / 465.1 MB, free: 8.965 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002301/0.1345, allocations: 0.9235 MB / 466 MB, free: 8.043 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.1345, allocations: 0 / 466 MB, free: 8.043 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000979/0.1355, allocations: 357.7 kB / 466.4 MB, free: 7.695 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000576/0.1361, allocations: 69.31 kB / 466.5 MB, free: 7.629 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.1383, allocations: 1.201 MB / 467.7 MB, free: 6.293 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.1387, allocations: 0.7804 MB / 468.4 MB, free: 5.488 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00026/0.139, allocations: 35.44 kB / 468.5 MB, free: 5.457 MB / 314.7 MB Notification: Performance of SimCode: time 5.92e-07/0.139, allocations: 4 kB / 468.5 MB, free: 5.453 MB / 314.7 MB Notification: Performance of Templates: time 0.008534/0.1475, allocations: 5.498 MB / 474 MB, free: 15.95 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