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.0009716/0.0009717, allocations: 98.77 kB / 18.01 MB, free: 5.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001272/0.001272, allocations: 203.8 kB / 18.93 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002597, allocations: 8 kB / 308.4 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1148, allocations: 51.53 MB / 359.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003154/0.1181, allocations: 2.031 MB / 361.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.1198, allocations: 0.8184 MB / 362.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002047/0.12, allocations: 8 kB / 362.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002992/0.1203, allocations: 43.69 kB / 362.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002402/0.1206, allocations: 39.75 kB / 362.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005983/0.1212, allocations: 155.7 kB / 363 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004559/0.1216, allocations: 363.5 kB / 363.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/0.1218, allocations: 95.81 kB / 363.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003334/0.1222, allocations: 131.5 kB / 363.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.1225, allocations: 163.2 kB / 363.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.644e-05/0.1225, allocations: 20 kB / 363.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.541e-05/0.1226, allocations: 16 kB / 363.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.1227, allocations: 71.78 kB / 363.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1229, allocations: 156.9 kB / 364 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002676/0.1232, allocations: 227.7 kB / 364.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1232, allocations: 0 / 364.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.1232, allocations: 0 / 364.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.1232, allocations: 0 / 364.2 MB, free: 8.98 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.001236/0.1244, allocations: 0.5927 MB / 364.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1245, allocations: 12.03 kB / 364.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.1246, allocations: 36.56 kB / 364.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.125, allocations: 273.4 kB / 365.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000217/0.1252, allocations: 146.3 kB / 365.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.46e-05/0.1253, allocations: 32.38 kB / 365.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.1266, allocations: 0.5784 MB / 365.9 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.1266, allocations: 4 kB / 365.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.664e-05/0.1267, allocations: 12 kB / 365.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.1267, allocations: 11.94 kB / 365.9 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.1282, allocations: 0.5411 MB / 366.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.1298, allocations: 1.014 MB / 367.5 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.1315, allocations: 0.5141 MB / 368 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006649/0.1321, allocations: 279.4 kB / 368.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.464e-05/0.1322, allocations: 4 kB / 368.2 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.1322, allocations: 42.56 kB / 368.3 MB, free: 4.641 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.063e-06/0.1323, allocations: 0 / 368.3 MB, free: 4.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2707/0.403, allocations: 6.758 MB / 375 MB, free: 20 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.4031, allocations: 148.7 kB / 375.2 MB, free: 19.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/0.4035, allocations: 204.3 kB / 375.4 MB, free: 19.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.4036, allocations: 38.14 kB / 375.4 MB, free: 19.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.4037, allocations: 144.4 kB / 375.6 MB, free: 19.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/0.404, allocations: 189.2 kB / 375.8 MB, free: 19.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.4042, allocations: 58.42 kB / 375.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.4043, allocations: 343.1 kB / 376.1 MB, free: 19.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/0.4063, allocations: 0.6572 MB / 376.8 MB, free: 19.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/0.4081, allocations: 0.8381 MB / 377.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003355/0.4115, allocations: 1.321 MB / 379 MB, free: 17.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.4115, allocations: 9.25 kB / 379 MB, free: 17.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003925/0.4155, allocations: 1.468 MB / 380.4 MB, free: 17.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.4155, allocations: 7 kB / 380.4 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.4155, allocations: 6.156 kB / 380.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.365e-05/0.4156, allocations: 9.766 kB / 380.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.417, allocations: 234.5 kB / 380.7 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.44e-05/0.4171, allocations: 15.11 kB / 380.7 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.4182, allocations: 119.8 kB / 380.8 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.4184, allocations: 32.44 kB / 380.9 MB, free: 17.3 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.0003972/0.4188, allocations: 191.5 kB / 381 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003722/0.4192, allocations: 151.2 kB / 381.2 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002175/0.4194, allocations: 64.41 kB / 381.3 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.4194, allocations: 7.469 kB / 381.3 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.127e-05/0.4194, allocations: 2.641 kB / 381.3 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.4194, allocations: 3.328 kB / 381.3 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005802/0.4252, allocations: 2.299 MB / 383.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.329e-05/0.4253, allocations: 10.97 kB / 383.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008958/0.4262, allocations: 199.4 kB / 383.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.868e-05/0.4263, allocations: 14.31 kB / 383.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.957e-05/0.4263, allocations: 27.8 kB / 383.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.676e-05/0.4264, allocations: 23.8 kB / 383.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.489e-05/0.4264, allocations: 16.12 kB / 383.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003643/0.43, allocations: 1.672 MB / 385.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000227/0.4303, allocations: 161.3 kB / 385.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.378e-05/0.4304, allocations: 30.28 kB / 385.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007084/0.4311, allocations: 95.56 kB / 385.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002346/0.4313, allocations: 103.1 kB / 385.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.294e-05/0.4314, allocations: 31.53 kB / 385.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001354/0.4315, allocations: 141.8 kB / 386.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4315, allocations: 1.219 kB / 386.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007881/0.4323, allocations: 122.1 kB / 386.2 MB, free: 14.51 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.0001793/0.4325, allocations: 128.5 kB / 386.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003536/0.4361, allocations: 1.192 MB / 387.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.4361, allocations: 1.906 kB / 387.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.4373, allocations: 383.4 kB / 387.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.4385, allocations: 145.4 kB / 388 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.4412, allocations: 1.407 MB / 389.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.4416, allocations: 0.8169 MB / 390.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003826/0.442, allocations: 37.53 kB / 390.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of SimCode: time 9.52e-07/0.442, allocations: 1.594 kB / 390.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Templates: time 0.01254/0.4545, allocations: 7.128 MB / 397.4 MB, free: 7.844 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches