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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001193/0.001193, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001224/0.001224, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.966/0.966, allocations: 177 MB / 204.8 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] 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=8007,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=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.65e-05/2.803e-05, allocations: 6.312 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002761/0.002789, allocations: 2.37 MB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.004101, allocations: 0.8219 MB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.004276, allocations: 7.938 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002857/0.004561, allocations: 55.56 kB / 276.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.004769, allocations: 63.5 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004717/0.005241, allocations: 179.4 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.005587, allocations: 383.5 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.005764, allocations: 92.17 kB / 276.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003284/0.006093, allocations: 227.5 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.006277, allocations: 147.6 kB / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.679e-05/0.006324, allocations: 40 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.778e-05/0.006361, allocations: 36 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.785e-05/0.006449, allocations: 91.7 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.562e-05/0.006535, allocations: 111.7 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.0068, allocations: 263 kB / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.006803, allocations: 0 / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.006804, allocations: 0 / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.006809, allocations: 0 / 277.7 MB, free: 12.58 MB / 266.7 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.0007954/0.007605, allocations: 0.6365 MB / 278.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.00764, allocations: 11.98 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.594e-05/0.007736, allocations: 72.7 kB / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.008003, allocations: 228.5 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001933/0.008196, allocations: 343.9 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.813e-05/0.008244, allocations: 32.38 kB / 279.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006494/0.008894, allocations: 460.7 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.008908, allocations: 4.188 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.689e-05/0.008935, allocations: 16.12 kB / 279.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.008946, allocations: 8 kB / 279.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003729/0.009319, allocations: 236.4 kB / 279.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009311/0.01025, allocations: 0.933 MB / 280.7 MB, free: 9.398 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005853/0.01084, allocations: 347.7 kB / 281 MB, free: 9.012 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.01101, allocations: 154.7 kB / 281.2 MB, free: 8.844 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.297e-05/0.01105, allocations: 12.39 kB / 281.2 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.01108, allocations: 45.33 kB / 281.2 MB, free: 8.777 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.914e-06/0.01108, allocations: 0 / 281.2 MB, free: 8.777 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006617/0.01769, allocations: 2.62 MB / 283.9 MB, free: 6.152 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.152e-05/0.01778, allocations: 153.4 kB / 284 MB, free: 5.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.01793, allocations: 242.5 kB / 284.2 MB, free: 5.715 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.904e-05/0.01798, allocations: 41.7 kB / 284.3 MB, free: 5.668 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.254e-05/0.01806, allocations: 188.5 kB / 284.5 MB, free: 5.477 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.01818, allocations: 198.3 kB / 284.7 MB, free: 5.281 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.01835, allocations: 96 kB / 284.8 MB, free: 5.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.01846, allocations: 0.5117 MB / 285.3 MB, free: 4.656 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003917/0.01885, allocations: 321.2 kB / 285.6 MB, free: 4.344 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004365/0.01929, allocations: 432 kB / 286 MB, free: 3.883 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007392/0.02003, allocations: 0.6435 MB / 286.6 MB, free: 3.199 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.02003, allocations: 4 kB / 286.7 MB, free: 3.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009823/0.02102, allocations: 0.7746 MB / 287.4 MB, free: 2.414 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.02104, allocations: 8 kB / 287.4 MB, free: 2.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.02104, allocations: 320 / 287.4 MB, free: 2.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.02106, allocations: 8.219 kB / 287.4 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000567/0.02163, allocations: 167.7 kB / 287.6 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.02164, allocations: 4 kB / 287.6 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.02199, allocations: 71.86 kB / 287.7 MB, free: 2.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-05/0.02203, allocations: 23.97 kB / 287.7 MB, free: 2.137 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (67): * Single equations (assignments): 67 * 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.0001872/0.02222, allocations: 196.3 kB / 287.9 MB, free: 1.934 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002155/0.02244, allocations: 157.4 kB / 288.1 MB, free: 1.773 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.986e-05/0.02252, allocations: 71.23 kB / 288.1 MB, free: 1.703 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.02252, allocations: 8 kB / 288.1 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.02253, allocations: 4 kB / 288.1 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.02254, allocations: 7.984 kB / 288.1 MB, free: 1.684 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.02432, allocations: 1.508 MB / 289.6 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.02433, allocations: 16.03 kB / 289.7 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003448/0.02467, allocations: 167.7 kB / 289.8 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.678e-06/0.02468, allocations: 12 kB / 289.8 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.517e-05/0.02472, allocations: 27.98 kB / 289.9 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.708e-06/0.02473, allocations: 19.94 kB / 289.9 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.747e-06/0.02474, allocations: 11.94 kB / 289.9 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.02576, allocations: 1.232 MB / 291.1 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.02589, allocations: 95.62 kB / 291.2 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.02593, allocations: 27.98 kB / 291.2 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.02618, allocations: 59.94 kB / 291.3 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.0263, allocations: 87.64 kB / 291.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.02633, allocations: 39.97 kB / 291.4 MB, free: 13.97 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.894e-05/0.02641, allocations: 165.1 kB / 291.6 MB, free: 13.81 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02641, allocations: 0 / 291.6 MB, free: 13.81 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000368/0.02678, allocations: 120 kB / 291.7 MB, free: 13.69 MB / 282.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001184/0.0269, allocations: 131 kB / 291.8 MB, free: 13.55 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007784/0.02768, allocations: 0.5819 MB / 292.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.02768, allocations: 0 / 292.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.02789, allocations: 163.1 kB / 292.6 MB, free: 12.81 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005898/0.02848, allocations: 145.6 kB / 292.7 MB, free: 12.67 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.02991, allocations: 1.131 MB / 293.9 MB, free: 11.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.203e-05/0.03, allocations: 126.8 kB / 294 MB, free: 11.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002532/0.03025, allocations: 87.19 kB / 294.1 MB, free: 11.09 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.03045, allocations: 40.48 kB / 294.1 MB, free: 11.05 MB / 282.7 MB Notification: Performance of SimCode: time 1.072e-06/0.03045, allocations: 0 / 294.1 MB, free: 11.05 MB / 282.7 MB Notification: Performance of Templates: time 0.009246/0.0397, allocations: 8.802 MB / 302.9 MB, free: 2.316 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1708404859527946]