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.0007805/0.0007835, allocations: 93.78 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009101/0.0009102, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.145/1.145, allocations: 227.7 MB / 246.8 MB, free: 9.586 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001737/0.0001736, allocations: 4.281 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07171/0.0719, allocations: 51.53 MB / 359.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002034/0.07396, allocations: 2.027 MB / 361.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.07505, allocations: 0.8262 MB / 362.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.555e-05/0.07516, allocations: 4 kB / 362.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.07535, allocations: 43.7 kB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.0755, allocations: 39.75 kB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003557/0.07586, allocations: 163.6 kB / 362.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002969/0.07616, allocations: 355.6 kB / 362.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.07632, allocations: 95.81 kB / 362.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.07651, allocations: 131.5 kB / 362.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.07669, allocations: 167.2 kB / 363.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.144e-05/0.07673, allocations: 16 kB / 363.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.055e-05/0.07676, allocations: 16 kB / 363.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.101e-05/0.07685, allocations: 79.7 kB / 363.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.07697, allocations: 157 kB / 363.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.07721, allocations: 303.2 kB / 363.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.07722, allocations: 0 / 363.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.07723, allocations: 0 / 363.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.07723, allocations: 0 / 363.6 MB, free: 8.656 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.0009218/0.07816, allocations: 0.5849 MB / 364.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.511e-05/0.07819, allocations: 12.03 kB / 364.2 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.26e-05/0.07827, allocations: 36.56 kB / 364.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000265/0.07854, allocations: 281.3 kB / 364.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.07873, allocations: 142.3 kB / 364.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.982e-05/0.07878, allocations: 32.38 kB / 364.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.07983, allocations: 0.5823 MB / 365.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.07985, allocations: 4 kB / 365.3 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.07989, allocations: 12 kB / 365.3 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.0799, allocations: 4 kB / 365.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.08116, allocations: 0.5408 MB / 365.8 MB, free: 6.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.08241, allocations: 1.021 MB / 366.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.08385, allocations: 0.5124 MB / 367.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005722/0.08443, allocations: 279.5 kB / 367.7 MB, free: 4.375 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.534e-05/0.08447, allocations: 11.97 kB / 367.7 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.08451, allocations: 38.56 kB / 367.7 MB, free: 4.316 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.433e-06/0.08452, allocations: 4 kB / 367.7 MB, free: 4.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.154/0.2386, allocations: 6.751 MB / 374.5 MB, free: 20.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.2386, allocations: 149.2 kB / 374.6 MB, free: 20.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.2388, allocations: 201.2 kB / 374.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.054e-05/0.2389, allocations: 40.45 kB / 374.8 MB, free: 20.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.2389, allocations: 147.8 kB / 375 MB, free: 19.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.2391, allocations: 193.5 kB / 375.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.2392, allocations: 56.5 kB / 375.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.991e-05/0.2393, allocations: 347.1 kB / 375.6 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.2408, allocations: 0.6535 MB / 376.2 MB, free: 19.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.2423, allocations: 0.8337 MB / 377.1 MB, free: 18.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002728/0.245, allocations: 1.323 MB / 378.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.245, allocations: 5.906 kB / 378.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003157/0.2482, allocations: 1.468 MB / 379.9 MB, free: 17.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2482, allocations: 7.422 kB / 379.9 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.2482, allocations: 9.328 kB / 379.9 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.2482, allocations: 10.25 kB / 379.9 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.2495, allocations: 235 kB / 380.1 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/0.2495, allocations: 9.953 kB / 380.1 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008823/0.2504, allocations: 125.4 kB / 380.2 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.892e-05/0.2504, allocations: 31.44 kB / 380.3 MB, free: 17.39 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.0002176/0.2507, allocations: 183.2 kB / 380.4 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002403/0.2509, allocations: 150.8 kB / 380.6 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.2511, allocations: 67.84 kB / 380.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.2511, allocations: 8.375 kB / 380.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.2511, allocations: 1.062 kB / 380.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.2511, allocations: 5.766 kB / 380.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004139/0.2552, allocations: 2.297 MB / 383 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/0.2553, allocations: 9.812 kB / 383 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006819/0.256, allocations: 204.6 kB / 383.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.18e-05/0.256, allocations: 13.25 kB / 383.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/0.256, allocations: 24.33 kB / 383.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.296e-05/0.256, allocations: 20.61 kB / 383.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.2561, allocations: 17.05 kB / 383.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002752/0.2588, allocations: 1.676 MB / 384.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.259, allocations: 160.6 kB / 385.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.872e-05/0.259, allocations: 30.98 kB / 385.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005543/0.2596, allocations: 100.7 kB / 385.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.2597, allocations: 97.97 kB / 385.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/0.2598, allocations: 29.97 kB / 385.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.6e-05/0.2599, allocations: 143.2 kB / 385.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2599, allocations: 3.938 kB / 385.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005435/0.2604, allocations: 118.5 kB / 385.6 MB, free: 14.61 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.0001029/0.2605, allocations: 135.9 kB / 385.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002511/0.263, allocations: 1.198 MB / 386.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.2631, allocations: 2.188 kB / 386.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009272/0.264, allocations: 373.1 kB / 387.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008711/0.2649, allocations: 144.6 kB / 387.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.2666, allocations: 1.369 MB / 388.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001998/0.2668, allocations: 0.8154 MB / 389.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004886/0.2673, allocations: 98.81 kB / 389.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002512/0.2676, allocations: 40.81 kB / 389.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2676, allocations: 0 / 389.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of Templates: time 0.008869/0.2765, allocations: 7.52 MB / 397.3 MB, free: 7.34 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","/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