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.001712/0.001712, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00194/0.00194, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 59.75 kB / 307 MB, free: 0.6406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1141, allocations: 50.54 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004068/0.1182, allocations: 2.351 MB / 359.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001639/0.1199, allocations: 0.8416 MB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.1201, allocations: 7.938 kB / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003228/0.1204, allocations: 51.58 kB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.1206, allocations: 55.56 kB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005456/0.1212, allocations: 187.6 kB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004508/0.1216, allocations: 379.5 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002322/0.1219, allocations: 107.8 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002992/0.1222, allocations: 159.5 kB / 361.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.1225, allocations: 183.2 kB / 361.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.872e-05/0.1225, allocations: 32 kB / 361.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.768e-05/0.1226, allocations: 40 kB / 361.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.1227, allocations: 95.77 kB / 362 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.1229, allocations: 143.2 kB / 362.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.1233, allocations: 327.2 kB / 362.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1233, allocations: 0 / 362.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1233, allocations: 0 / 362.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.1233, allocations: 0 / 362.4 MB, free: 9.145 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.001273/0.1246, allocations: 0.6239 MB / 363.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1246, allocations: 8.031 kB / 363.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.069e-05/0.1247, allocations: 40.56 kB / 363.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003922/0.1251, allocations: 273.3 kB / 363.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000225/0.1253, allocations: 142.3 kB / 363.5 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.004e-05/0.1254, allocations: 32.38 kB / 363.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.1266, allocations: 0.5628 MB / 364.1 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1267, allocations: 0 / 364.1 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.874e-05/0.1267, allocations: 12 kB / 364.1 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.1267, allocations: 8 kB / 364.1 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.1281, allocations: 0.519 MB / 364.6 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.1297, allocations: 0.998 MB / 365.6 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.1313, allocations: 0.4985 MB / 366.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006353/0.132, allocations: 263.3 kB / 366.4 MB, free: 4.922 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.586e-05/0.1321, allocations: 4 kB / 366.4 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.743e-05/0.1321, allocations: 42.55 kB / 366.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.864e-06/0.1321, allocations: 0 / 366.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2277/0.3598, allocations: 5.73 MB / 372.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.282e-05/0.36, allocations: 149.6 kB / 372.3 MB, free: 20.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.3602, allocations: 200.3 kB / 372.5 MB, free: 20.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.3603, allocations: 37.61 kB / 372.6 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.023e-05/0.3604, allocations: 138.5 kB / 372.7 MB, free: 20.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.3606, allocations: 198.4 kB / 372.9 MB, free: 20.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002907/0.3609, allocations: 110.4 kB / 373 MB, free: 20.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.186e-05/0.361, allocations: 344.8 kB / 373.3 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001683/0.3627, allocations: 0.6133 MB / 373.9 MB, free: 19.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.3644, allocations: 0.7997 MB / 374.7 MB, free: 19.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003068/0.3675, allocations: 1.252 MB / 376 MB, free: 18.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.3675, allocations: 5.203 kB / 376 MB, free: 18.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003596/0.3711, allocations: 1.393 MB / 377.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.3712, allocations: 10.06 kB / 377.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/0.3712, allocations: 16.33 kB / 377.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.837e-05/0.3712, allocations: 13.22 kB / 377.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/0.3726, allocations: 208.4 kB / 377.6 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.573e-05/0.3726, allocations: 13.25 kB / 377.6 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.3736, allocations: 102.4 kB / 377.7 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.421e-05/0.3737, allocations: 25.95 kB / 377.8 MB, free: 18 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.noWphase,kinematicPTP.moving[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000307/0.3741, allocations: 179.7 kB / 377.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003052/0.3744, allocations: 150.2 kB / 378.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.3745, allocations: 63.11 kB / 378.2 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.3745, allocations: 11.84 kB / 378.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.617e-05/0.3746, allocations: 1.984 kB / 378.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.3746, allocations: 4.672 kB / 378.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004664/0.3792, allocations: 2.171 MB / 380.3 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.807e-05/0.3793, allocations: 12.27 kB / 380.4 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007423/0.38, allocations: 181.5 kB / 380.5 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.259e-05/0.3801, allocations: 13.97 kB / 380.5 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.119e-05/0.3801, allocations: 24.33 kB / 380.6 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.624e-05/0.3802, allocations: 19.56 kB / 380.6 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.07e-05/0.3802, allocations: 21.72 kB / 380.6 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003054/0.3833, allocations: 1.55 MB / 382.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.3834, allocations: 164.5 kB / 382.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.55e-05/0.3835, allocations: 26.27 kB / 382.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/0.3841, allocations: 81.86 kB / 382.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.3843, allocations: 93.78 kB / 382.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.931e-05/0.3844, allocations: 30.47 kB / 382.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001287/0.3845, allocations: 145.7 kB / 382.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3845, allocations: 0 / 382.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000681/0.3852, allocations: 122.1 kB / 382.8 MB, free: 15.27 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 (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.0001643/0.3854, allocations: 142.9 kB / 383 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002747/0.3881, allocations: 1.156 MB / 384.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.3881, allocations: 1.031 kB / 384.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009689/0.3891, allocations: 337.6 kB / 384.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008841/0.39, allocations: 135.4 kB / 384.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.3921, allocations: 1.163 MB / 385.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.3924, allocations: 0.8126 MB / 386.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005472/0.3929, allocations: 96.5 kB / 386.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/0.3932, allocations: 41.53 kB / 386.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3932, allocations: 11.66 kB / 386.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of Templates: time 0.01288/0.4061, allocations: 8.203 MB / 394.9 MB, free: 9.402 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.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches