Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001929/0.001929, allocations: 109.1 kB / 17.16 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00234/0.00234, allocations: 194.9 kB / 18.08 MB, free: 5.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.396/2.396, allocations: 222.9 MB / 241.8 MB, free: 13.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 45.02 kB / 300.6 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1903/0.1922, allocations: 49.44 MB / 350 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.008085/0.2003, allocations: 2.385 MB / 352.4 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002793/0.2032, allocations: 0.7988 MB / 353.2 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003186/0.2036, allocations: 7.938 kB / 353.2 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005216/0.2042, allocations: 35.77 kB / 353.3 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003512/0.2046, allocations: 51.69 kB / 353.3 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.2057, allocations: 165.2 kB / 353.5 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008127/0.2066, allocations: 355.6 kB / 353.8 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003944/0.207, allocations: 95.77 kB / 353.9 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004254/0.2074, allocations: 147.4 kB / 354.1 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004492/0.2079, allocations: 167.3 kB / 354.2 MB, free: 464 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-05/0.208, allocations: 24 kB / 354.3 MB, free: 440 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.619e-05/0.2081, allocations: 20 kB / 354.3 MB, free: 420 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002319/0.2084, allocations: 87.7 kB / 354.4 MB, free: 332 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002513/0.2086, allocations: 139.2 kB / 354.5 MB, free: 192 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004921/0.2091, allocations: 235.8 kB / 354.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.2092, allocations: 0 / 354.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.921e-06/0.2092, allocations: 4 kB / 354.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.2092, allocations: 0 / 354.7 MB, free: 15.95 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.002401/0.2116, allocations: 0.6123 MB / 355.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.147e-05/0.2117, allocations: 12.03 kB / 355.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001893/0.2119, allocations: 44.55 kB / 355.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006611/0.2126, allocations: 272.3 kB / 355.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000361/0.213, allocations: 134.3 kB / 355.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.2131, allocations: 36.28 kB / 355.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002219/0.2154, allocations: 0.5778 MB / 356.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.2154, allocations: 0 / 356.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.81e-05/0.2155, allocations: 12 kB / 356.4 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.2155, allocations: 4 kB / 356.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002469/0.218, allocations: 0.5035 MB / 356.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/0.2207, allocations: 1.002 MB / 357.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002648/0.2234, allocations: 0.5063 MB / 358.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009308/0.2244, allocations: 263.4 kB / 358.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.725e-05/0.2245, allocations: 12.08 kB / 358.7 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.954e-05/0.2245, allocations: 46.5 kB / 358.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 8.196e-06/0.2245, allocations: 0 / 358.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.07169/0.2962, allocations: 5.712 MB / 364.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003049/0.2966, allocations: 153.3 kB / 364.6 MB, free: 5.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005528/0.2972, allocations: 200.2 kB / 364.8 MB, free: 5.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001531/0.2974, allocations: 37.7 kB / 364.8 MB, free: 5.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.2976, allocations: 145.5 kB / 365 MB, free: 5.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003952/0.298, allocations: 189.3 kB / 365.2 MB, free: 5.176 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000572/0.2986, allocations: 110.7 kB / 365.3 MB, free: 5.059 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002392/0.2989, allocations: 346.8 kB / 365.6 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003087/0.302, allocations: 0.6149 MB / 366.2 MB, free: 4.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003423/0.3054, allocations: 0.8002 MB / 367 MB, free: 3.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005855/0.3113, allocations: 1.244 MB / 368.3 MB, free: 1.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.896e-05/0.3114, allocations: 4 kB / 368.3 MB, free: 1.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007139/0.3186, allocations: 1.393 MB / 369.7 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.3187, allocations: 8 kB / 369.7 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/0.3187, allocations: 4.281 kB / 369.7 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.304e-05/0.3188, allocations: 16 kB / 369.7 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002712/0.3215, allocations: 211.6 kB / 369.9 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.186e-05/0.3216, allocations: 15.92 kB / 369.9 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.3234, allocations: 91.8 kB / 370 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001801/0.3236, allocations: 39.98 kB / 370.1 MB, free: 120 kB / 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.3716/0.6953, allocations: 167.4 kB / 370.2 MB, free: 26.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008916/0.6962, allocations: 155.2 kB / 370.4 MB, free: 26.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003211/0.6966, allocations: 64.23 kB / 370.4 MB, free: 26.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.733e-05/0.6966, allocations: 7.219 kB / 370.4 MB, free: 26.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.1e-05/0.6966, allocations: 1.281 kB / 370.4 MB, free: 26.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-05/0.6967, allocations: 4.812 kB / 370.4 MB, free: 26.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009987/0.7067, allocations: 2.172 MB / 372.6 MB, free: 25.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.819e-05/0.7068, allocations: 10.25 kB / 372.6 MB, free: 25.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/0.7084, allocations: 186.6 kB / 372.8 MB, free: 25.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.653e-05/0.7085, allocations: 17.72 kB / 372.8 MB, free: 25.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001383/0.7087, allocations: 24.45 kB / 372.8 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-05/0.7087, allocations: 19.97 kB / 372.9 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.486e-05/0.7087, allocations: 17.28 kB / 372.9 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00631/0.7151, allocations: 1.561 MB / 374.4 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004574/0.7156, allocations: 165 kB / 374.6 MB, free: 24.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.7158, allocations: 30.47 kB / 374.6 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.7171, allocations: 73.08 kB / 374.7 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004061/0.7175, allocations: 96.34 kB / 374.8 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001227/0.7177, allocations: 31.2 kB / 374.8 MB, free: 24.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000279/0.718, allocations: 139.1 kB / 375 MB, free: 24.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.718, allocations: 4 kB / 375 MB, free: 24.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00153/0.7195, allocations: 123.2 kB / 375.1 MB, free: 24.59 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.0003195/0.7199, allocations: 141.7 kB / 375.2 MB, free: 24.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.005281/0.7252, allocations: 1.113 MB / 376.3 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.729e-05/0.7252, allocations: 1.375 kB / 376.3 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001851/0.7271, allocations: 341.8 kB / 376.7 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001953/0.7291, allocations: 146.2 kB / 376.8 MB, free: 23.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004548/0.7337, allocations: 1.358 MB / 378.2 MB, free: 22.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007245/0.7344, allocations: 0.8145 MB / 379 MB, free: 22.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006965/0.7351, allocations: 40.91 kB / 379 MB, free: 22.17 MB / 302.1 MB Notification: Performance of SimCode: time 1.753e-06/0.7352, allocations: 4 kB / 379 MB, free: 22.16 MB / 302.1 MB Notification: Performance of Templates: time 0.02907/0.7643, allocations: 7.137 MB / 386.2 MB, free: 19.71 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches