Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001182/0.001182, allocations: 94.05 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.001347/0.001347, allocations: 200.3 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.36/1.36, allocations: 227.2 MB / 245.9 MB, free: 12.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003171/0.0003172, allocations: 7.984 kB / 306.6 MB, free: 1.633 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1143, allocations: 51.49 MB / 358.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002691/0.117, allocations: 1.93 MB / 360 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.1185, allocations: 0.8149 MB / 360.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.1186, allocations: 7.938 kB / 360.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.1189, allocations: 35.77 kB / 360.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001833/0.1191, allocations: 55.78 kB / 360.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004618/0.1196, allocations: 135.7 kB / 361 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.1198, allocations: 239.7 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.12, allocations: 78.23 kB / 361.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.1203, allocations: 139.5 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.1205, allocations: 147.4 kB / 361.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.589e-05/0.1205, allocations: 19.94 kB / 361.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.995e-05/0.1206, allocations: 16 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.035e-05/0.1207, allocations: 71.78 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.669e-05/0.1207, allocations: 73.52 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.121, allocations: 231.7 kB / 362 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.121, allocations: 0 / 362 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.121, allocations: 0 / 362 MB, free: 10.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.121, allocations: 0 / 362 MB, free: 10.15 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001121/0.1221, allocations: 0.5848 MB / 362.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1222, allocations: 12.03 kB / 362.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.571e-05/0.1222, allocations: 39.56 kB / 362.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.1226, allocations: 264.3 kB / 362.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003107/0.1229, allocations: 141.7 kB / 363.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.18e-05/0.123, allocations: 47.8 kB / 363.1 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.1241, allocations: 0.5627 MB / 363.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.1242, allocations: 0 / 363.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.1242, allocations: 12 kB / 363.7 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.1242, allocations: 8 kB / 363.7 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.1256, allocations: 0.5425 MB / 364.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.1271, allocations: 1.018 MB / 365.2 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.1286, allocations: 0.5055 MB / 365.7 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.66e-05/0.1287, allocations: 16.41 kB / 365.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.1287, allocations: 42.7 kB / 365.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 5.47e-06/0.1287, allocations: 3.984 kB / 365.8 MB, free: 6.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2209/0.3496, allocations: 6.752 MB / 372.6 MB, free: 20.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.123e-05/0.3498, allocations: 146.4 kB / 372.7 MB, free: 20.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002197/0.35, allocations: 207.4 kB / 372.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.491e-05/0.3501, allocations: 38.52 kB / 372.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.594e-05/0.3502, allocations: 149.2 kB / 373.1 MB, free: 19.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001745/0.3503, allocations: 192.3 kB / 373.3 MB, free: 19.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.335e-05/0.3504, allocations: 11.84 kB / 373.3 MB, free: 19.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.16e-05/0.3505, allocations: 343.3 kB / 373.6 MB, free: 19.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001754/0.3523, allocations: 0.651 MB / 374.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001787/0.3541, allocations: 0.8316 MB / 375.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.3557, allocations: 0.6011 MB / 375.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.3557, allocations: 3.812 kB / 375.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003463/0.3592, allocations: 1.467 MB / 377.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.3592, allocations: 8.953 kB / 377.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.3593, allocations: 5.094 kB / 377.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.426e-05/0.3593, allocations: 10.56 kB / 377.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.3606, allocations: 238.8 kB / 377.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.905e-05/0.3606, allocations: 10.28 kB / 377.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009256/0.3616, allocations: 118.2 kB / 377.6 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.731e-05/0.3617, allocations: 36.89 kB / 377.6 MB, free: 18.52 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0002767/0.3619, allocations: 172.9 kB / 377.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002675/0.3622, allocations: 149.9 kB / 377.9 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001447/0.3624, allocations: 63.23 kB / 378 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.3624, allocations: 11.69 kB / 378 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-05/0.3624, allocations: 4.344 kB / 378 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.3624, allocations: 7.469 kB / 378 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005971/0.3684, allocations: 2.287 MB / 380.3 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.586e-05/0.3684, allocations: 10.41 kB / 380.3 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007757/0.3692, allocations: 204.4 kB / 380.5 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.085e-05/0.3692, allocations: 14.72 kB / 380.5 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.196e-05/0.3693, allocations: 31.52 kB / 380.5 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.922e-05/0.3693, allocations: 17.84 kB / 380.6 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.56e-05/0.3693, allocations: 15.98 kB / 380.6 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003316/0.3727, allocations: 2.177 MB / 382.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001895/0.3729, allocations: 162 kB / 382.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.402e-05/0.3729, allocations: 29.59 kB / 382.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006141/0.3736, allocations: 99.39 kB / 383 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002205/0.3738, allocations: 103.9 kB / 383.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.415e-05/0.3739, allocations: 31.19 kB / 383.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001434/0.374, allocations: 140.6 kB / 383.3 MB, free: 15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.374, allocations: 0 / 383.3 MB, free: 15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007449/0.3748, allocations: 126.3 kB / 383.4 MB, free: 14.97 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001801/0.375, allocations: 141.9 kB / 383.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002818/0.3778, allocations: 1.188 MB / 384.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.3778, allocations: 1.156 kB / 384.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.3789, allocations: 373.7 kB / 385.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006676/0.3795, allocations: 130.5 kB / 385.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.3818, allocations: 1.319 MB / 386.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.3823, allocations: 0.826 MB / 387.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006189/0.3829, allocations: 97.97 kB / 387.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002941/0.3832, allocations: 38.61 kB / 387.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3832, allocations: 0.9062 kB / 387.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01424/0.3974, allocations: 7.285 MB / 394.8 MB, free: 9.445 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,gain.k,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.phi,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,subSample1.factor,super.factor,super.inferFactor,time