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.0009026/0.0009025, allocations: 98.89 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009955/0.0009955, allocations: 200.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000248/0.0002484, allocations: 7.984 kB / 306.6 MB, free: 1.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1128, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002336/0.1152, allocations: 1.759 MB / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.1163, allocations: 0.6515 MB / 360.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.1164, allocations: 11.88 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.1167, allocations: 27.84 kB / 360.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.1168, allocations: 51.83 kB / 360.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002935/0.1171, allocations: 87.83 kB / 360.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.1174, allocations: 207.4 kB / 360.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.1175, allocations: 64.33 kB / 360.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002238/0.1178, allocations: 119.6 kB / 361 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.118, allocations: 135.5 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.118, allocations: 16 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.606e-05/0.118, allocations: 20 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.925e-05/0.1181, allocations: 63.78 kB / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.204e-05/0.1182, allocations: 57.64 kB / 361.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002011/0.1184, allocations: 195.8 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.1184, allocations: 3.938 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1184, allocations: 4 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.1184, allocations: 0 / 361.5 MB, free: 10.46 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.001485/0.1199, allocations: 0.55 MB / 362.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.12, allocations: 12.03 kB / 362.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.1202, allocations: 27.72 kB / 362.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000543/0.1207, allocations: 244.6 kB / 362.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003465/0.1211, allocations: 141.6 kB / 362.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.1212, allocations: 27.95 kB / 362.5 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.1228, allocations: 375.5 kB / 362.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.022e-05/0.1228, allocations: 7.906 kB / 362.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.69e-05/0.1229, allocations: 15.94 kB / 362.9 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.1229, allocations: 4 kB / 362.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002603/0.1256, allocations: 0.5096 MB / 363.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002887/0.1285, allocations: 1.027 MB / 364.4 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002079/0.1306, allocations: 351.1 kB / 364.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.511e-05/0.1306, allocations: 4.234 kB / 364.8 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.1307, allocations: 38.73 kB / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 4.198e-06/0.1307, allocations: 0 / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.04813/0.1788, allocations: 6.671 MB / 371.5 MB, free: 180 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.1789, allocations: 55.84 kB / 371.5 MB, free: 112 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2228/0.4017, allocations: 193.7 kB / 371.7 MB, free: 20.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001458/0.4019, allocations: 34.83 kB / 371.8 MB, free: 20.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.402, allocations: 151.6 kB / 371.9 MB, free: 20.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002352/0.4023, allocations: 171.5 kB / 372.1 MB, free: 20.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.893e-05/0.4024, allocations: 11.81 kB / 372.1 MB, free: 20.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.347e-05/0.4025, allocations: 336.6 kB / 372.4 MB, free: 20.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002074/0.4046, allocations: 0.4939 MB / 372.9 MB, free: 20.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002068/0.4066, allocations: 0.55 MB / 373.5 MB, free: 20.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002003/0.4087, allocations: 442.4 kB / 373.9 MB, free: 20.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.4087, allocations: 0 / 373.9 MB, free: 20.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004377/0.4131, allocations: 1.065 MB / 375 MB, free: 20.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.4131, allocations: 5.906 kB / 375 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.4131, allocations: 1.062 kB / 375 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.022e-05/0.4132, allocations: 3.766 kB / 375 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.4146, allocations: 191 kB / 375.2 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.644e-05/0.4146, allocations: 6.875 kB / 375.2 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/0.4156, allocations: 105.7 kB / 375.3 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.333e-05/0.4157, allocations: 16.38 kB / 375.3 MB, free: 20.07 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.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.0002967/0.416, allocations: 157.2 kB / 375.4 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.4162, allocations: 29.39 kB / 375.5 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00013/0.4163, allocations: 56.61 kB / 375.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.4163, allocations: 5.938 kB / 375.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.4164, allocations: 0 / 375.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.4164, allocations: 3.625 kB / 375.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006333/0.4227, allocations: 1.992 MB / 377.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.056e-05/0.4228, allocations: 9.703 kB / 377.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.4238, allocations: 166 kB / 377.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.884e-05/0.4239, allocations: 11.84 kB / 377.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.54e-05/0.424, allocations: 17.44 kB / 377.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.76e-05/0.424, allocations: 17.45 kB / 377.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.535e-05/0.424, allocations: 16.36 kB / 377.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00453/0.4286, allocations: 1.744 MB / 379.5 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/0.4288, allocations: 142 kB / 379.6 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.083e-05/0.4289, allocations: 21.88 kB / 379.7 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007846/0.4297, allocations: 101.7 kB / 379.8 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/0.43, allocations: 91.3 kB / 379.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.395e-05/0.4301, allocations: 22.98 kB / 379.9 MB, free: 17.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002194/0.4303, allocations: 145.9 kB / 380 MB, free: 17.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4303, allocations: 0 / 380 MB, free: 17.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009381/0.4313, allocations: 93.03 kB / 380.1 MB, free: 17.17 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 (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.0002008/0.4315, allocations: 132.3 kB / 380.2 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003735/0.4352, allocations: 0.9142 MB / 381.1 MB, free: 16.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.4353, allocations: 4.938 kB / 381.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.4368, allocations: 370.2 kB / 381.5 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007099/0.4376, allocations: 54.58 kB / 381.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.4405, allocations: 1.149 MB / 382.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.4409, allocations: 0.7878 MB / 383.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000802/0.4417, allocations: 85.62 kB / 383.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002991/0.442, allocations: 33.31 kB / 383.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of SimCode: time 1.223e-06/0.442, allocations: 0 / 383.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of Templates: time 0.01427/0.4563, allocations: 5.012 MB / 388.6 MB, free: 13.5 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","../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches