Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001041/0.001041, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001118, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 59.45 kB / 306.3 MB, free: 1.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09551, allocations: 50.54 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003154/0.09869, allocations: 2.202 MB / 359 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.09996, allocations: 0.6744 MB / 359.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.1001, allocations: 4 kB / 359.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003147/0.1004, allocations: 43.75 kB / 359.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.1006, allocations: 35.77 kB / 359.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.1009, allocations: 111.9 kB / 359.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003018/0.1012, allocations: 319.2 kB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.1014, allocations: 72.28 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/0.1016, allocations: 127.6 kB / 360.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.1018, allocations: 151.3 kB / 360.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.958e-05/0.1019, allocations: 16 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.128e-05/0.1019, allocations: 20 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.431e-05/0.102, allocations: 71.8 kB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.1021, allocations: 123.4 kB / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002374/0.1024, allocations: 263.4 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1024, allocations: 0 / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1024, allocations: 0 / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.1024, allocations: 0 / 361 MB, free: 10.32 MB / 302.1 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.001063/0.1035, allocations: 0.5806 MB / 361.6 MB, free: 9.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.1035, allocations: 8.031 kB / 361.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.09e-05/0.1036, allocations: 32.66 kB / 361.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.1039, allocations: 252.4 kB / 361.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.104, allocations: 134.2 kB / 362 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.068e-05/0.1041, allocations: 23.94 kB / 362 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007573/0.1049, allocations: 375.5 kB / 362.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1049, allocations: 0 / 362.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.902e-05/0.1049, allocations: 4 kB / 362.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1049, allocations: 8 kB / 362.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.1062, allocations: 0.494 MB / 362.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.1077, allocations: 1.003 MB / 363.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.1088, allocations: 347 kB / 364.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004481/0.1093, allocations: 173.9 kB / 364.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.1093, allocations: 4.234 kB / 364.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.1094, allocations: 34.8 kB / 364.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.563e-06/0.1094, allocations: 4 kB / 364.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.0264/0.1358, allocations: 5.794 MB / 370.2 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.309e-05/0.1359, allocations: 55.84 kB / 370.3 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002891/0.1362, allocations: 199.7 kB / 370.5 MB, free: 0.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.977e-05/0.1363, allocations: 33.7 kB / 370.5 MB, free: 472 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.1364, allocations: 148.6 kB / 370.7 MB, free: 316 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.1366, allocations: 177.4 kB / 370.8 MB, free: 136 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002264/0.1368, allocations: 94.19 kB / 370.9 MB, free: 36 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1638/0.3006, allocations: 334.8 kB / 371.3 MB, free: 21.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001411/0.302, allocations: 468.9 kB / 371.7 MB, free: 21.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.3033, allocations: 0.5132 MB / 372.2 MB, free: 21.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002155/0.3054, allocations: 0.8068 MB / 373 MB, free: 20.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3055, allocations: 0 / 373 MB, free: 20.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002579/0.308, allocations: 0.9837 MB / 374 MB, free: 20.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.3081, allocations: 10.53 kB / 374 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.3081, allocations: 0.9688 kB / 374 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.3081, allocations: 5.641 kB / 374 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009631/0.3091, allocations: 167.7 kB / 374.2 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.3091, allocations: 8.672 kB / 374.2 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006733/0.3098, allocations: 85.95 kB / 374.3 MB, free: 20.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.679e-05/0.3098, allocations: 17.12 kB / 374.3 MB, free: 20.52 MB / 302.1 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.0001967/0.31, allocations: 158.6 kB / 374.5 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.09e-05/0.3101, allocations: 31.06 kB / 374.5 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.096e-05/0.3102, allocations: 49.31 kB / 374.5 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.3102, allocations: 5.5 kB / 374.5 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3103, allocations: 8.5 kB / 374.6 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.3103, allocations: 2.391 kB / 374.6 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003607/0.3139, allocations: 1.874 MB / 376.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.3139, allocations: 7.406 kB / 376.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000631/0.3145, allocations: 145.6 kB / 376.6 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.3146, allocations: 16.19 kB / 376.6 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.3146, allocations: 20.39 kB / 376.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.314e-05/0.3146, allocations: 18.59 kB / 376.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-06/0.3146, allocations: 17.47 kB / 376.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002363/0.317, allocations: 1.238 MB / 377.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.3172, allocations: 139.6 kB / 378 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.613e-05/0.3172, allocations: 22.36 kB / 378 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005313/0.3178, allocations: 79.78 kB / 378.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.318, allocations: 81.41 kB / 378.2 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/0.318, allocations: 24.38 kB / 378.2 MB, free: 18.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001424/0.3181, allocations: 151 kB / 378.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3182, allocations: 4 kB / 378.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004789/0.3186, allocations: 96.72 kB / 378.5 MB, free: 18.3 MB / 302.1 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 (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.0001306/0.3188, allocations: 128.3 kB / 378.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.3209, allocations: 0.8547 MB / 379.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.716e-06/0.3209, allocations: 1.469 kB / 379.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008649/0.3217, allocations: 326.6 kB / 379.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000626/0.3224, allocations: 59.67 kB / 379.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.3243, allocations: 1.135 MB / 381 MB, free: 16.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.3245, allocations: 0.7838 MB / 381.8 MB, free: 16.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004713/0.325, allocations: 80.95 kB / 381.8 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002136/0.3252, allocations: 33.78 kB / 381.9 MB, free: 16.2 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3252, allocations: 0 / 381.9 MB, free: 16.2 MB / 302.1 MB Notification: Performance of Templates: time 0.008654/0.3339, allocations: 5.237 MB / 387.1 MB, free: 14.64 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches