Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001245/0.001245, allocations: 97.73 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001597/0.001597, allocations: 203.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.7 MB / 247.5 MB, free: 11.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002641/0.0002641, allocations: 8 kB / 308.4 MB, free: 0.7539 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1095, allocations: 51.52 MB / 359.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002419/0.112, allocations: 1.848 MB / 361.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.1132, allocations: 0.6667 MB / 362.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.1133, allocations: 8 kB / 362.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002553/0.1135, allocations: 35.77 kB / 362.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.1137, allocations: 39.75 kB / 362.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.114, allocations: 115.8 kB / 362.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003372/0.1143, allocations: 315.2 kB / 362.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.1145, allocations: 64.34 kB / 363 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002295/0.1148, allocations: 135.4 kB / 363.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.115, allocations: 131.5 kB / 363.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.578e-05/0.115, allocations: 19.94 kB / 363.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.749e-05/0.1151, allocations: 20 kB / 363.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.667e-05/0.1152, allocations: 71.77 kB / 363.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.1153, allocations: 133.2 kB / 363.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.1155, allocations: 191.8 kB / 363.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1155, allocations: 0 / 363.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1155, allocations: 0 / 363.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.1155, allocations: 0 / 363.7 MB, free: 9.434 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001046/0.1166, allocations: 0.5572 MB / 364.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.1166, allocations: 8.031 kB / 364.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.889e-05/0.1167, allocations: 32.66 kB / 364.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002818/0.117, allocations: 255.8 kB / 364.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002069/0.1172, allocations: 146.2 kB / 364.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.444e-05/0.1173, allocations: 23.94 kB / 364.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008572/0.1181, allocations: 371.6 kB / 365 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.1182, allocations: 8 kB / 365.1 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.391e-05/0.1182, allocations: 15.92 kB / 365.1 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.669e-06/0.1182, allocations: 8 kB / 365.1 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.1196, allocations: 0.5057 MB / 365.6 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.1213, allocations: 1.034 MB / 366.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.1225, allocations: 355.1 kB / 367 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005294/0.1231, allocations: 197.1 kB / 367.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.1231, allocations: 4.234 kB / 367.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.1232, allocations: 30.8 kB / 367.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.164e-06/0.1232, allocations: 0 / 367.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.2386/0.3618, allocations: 6.671 MB / 373.9 MB, free: 19.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.3619, allocations: 60.06 kB / 373.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003189/0.3622, allocations: 200.8 kB / 374.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.575e-05/0.3623, allocations: 35.14 kB / 374.1 MB, free: 19.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.582e-05/0.3624, allocations: 151.4 kB / 374.3 MB, free: 19.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.3626, allocations: 177.1 kB / 374.5 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.3627, allocations: 51.44 kB / 374.5 MB, free: 19.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3628, allocations: 336.5 kB / 374.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.3644, allocations: 0.4913 MB / 375.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001691/0.3661, allocations: 0.5518 MB / 375.9 MB, free: 18.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002745/0.3688, allocations: 0.8855 MB / 376.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.3689, allocations: 0 / 376.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003344/0.3722, allocations: 1.059 MB / 377.8 MB, free: 18.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.565e-05/0.3723, allocations: 9.109 kB / 377.8 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.3723, allocations: 1.656 kB / 377.8 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.981e-05/0.3723, allocations: 10.34 kB / 377.9 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.3735, allocations: 182.3 kB / 378 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.148e-05/0.3735, allocations: 7.812 kB / 378 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007787/0.3743, allocations: 112.3 kB / 378.1 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.344e-05/0.3743, allocations: 15.12 kB / 378.2 MB, free: 18.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002406/0.3746, allocations: 156.2 kB / 378.3 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.095e-05/0.3747, allocations: 32.16 kB / 378.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001322/0.3748, allocations: 52.94 kB / 378.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.906e-06/0.3748, allocations: 6.031 kB / 378.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/0.3749, allocations: 0 / 378.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3749, allocations: 6.641 kB / 378.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004533/0.3794, allocations: 1.991 MB / 380.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.3794, allocations: 6.969 kB / 380.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006746/0.3801, allocations: 167 kB / 380.6 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.589e-05/0.3801, allocations: 14.09 kB / 380.6 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.217e-05/0.3802, allocations: 20.84 kB / 380.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.478e-05/0.3802, allocations: 17.3 kB / 380.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/0.3802, allocations: 13 kB / 380.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00305/0.3833, allocations: 1.35 MB / 382 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.3835, allocations: 152.2 kB / 382.1 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.92e-05/0.3835, allocations: 22.42 kB / 382.2 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005675/0.3841, allocations: 89.52 kB / 382.2 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.3843, allocations: 90.52 kB / 382.3 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.495e-05/0.3844, allocations: 24.12 kB / 382.4 MB, free: 16.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001637/0.3846, allocations: 145.5 kB / 382.5 MB, free: 16.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3846, allocations: 0 / 382.5 MB, free: 16.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005533/0.3851, allocations: 96.66 kB / 382.6 MB, free: 16.05 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001563/0.3853, allocations: 123.8 kB / 382.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002598/0.3879, allocations: 0.9249 MB / 383.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.3879, allocations: 2.312 kB / 383.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.389, allocations: 368.8 kB / 384 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007585/0.3898, allocations: 59.25 kB / 384.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002262/0.392, allocations: 1.22 MB / 385.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.3924, allocations: 0.7805 MB / 386.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002654/0.3927, allocations: 37.25 kB / 386.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3927, allocations: 0 / 386.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of Templates: time 0.01012/0.4028, allocations: 5.534 MB / 391.6 MB, free: 11.84 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches