Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002527/0.002527, allocations: 91.61 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003087/0.003087, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.564/1.564, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 272.3 MB, free: 1.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.692e-05/2.862e-05, allocations: 2.312 kB / 272.3 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003751/0.00378, allocations: 2.143 MB / 274.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.005207, allocations: 0.6587 MB / 275.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.005326, allocations: 11.94 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003012/0.005628, allocations: 43.64 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.005793, allocations: 55.55 kB / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003937/0.006187, allocations: 127.7 kB / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.006625, allocations: 347.1 kB / 275.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.006782, allocations: 52.53 kB / 275.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003729/0.007155, allocations: 203.6 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.007384, allocations: 127.6 kB / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.905e-05/0.007443, allocations: 28 kB / 276.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.667e-05/0.007499, allocations: 32 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.007623, allocations: 95.69 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.00774, allocations: 91.78 kB / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004357/0.008176, allocations: 307 kB / 276.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.00818, allocations: 0 / 276.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.008182, allocations: 0 / 276.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.008187, allocations: 4 kB / 276.6 MB, free: 13.55 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001219/0.009406, allocations: 0.6047 MB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.009442, allocations: 8.031 kB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001234/0.009565, allocations: 64.8 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.009895, allocations: 188.8 kB / 277.4 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004551/0.01035, allocations: 339.8 kB / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.193e-05/0.01041, allocations: 28.31 kB / 277.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008825/0.01129, allocations: 344.6 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.01131, allocations: 3.953 kB / 278.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.01135, allocations: 8 kB / 278.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.01136, allocations: 8 kB / 278.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.01275, allocations: 437.7 kB / 278.6 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.01462, allocations: 0.9452 MB / 279.5 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.01567, allocations: 286.9 kB / 279.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000528/0.01619, allocations: 143.6 kB / 279.9 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.387e-05/0.01624, allocations: 11.94 kB / 280 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.01627, allocations: 37.39 kB / 280 MB, free: 9.922 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.523e-06/0.01627, allocations: 0 / 280 MB, free: 9.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.01657/0.03284, allocations: 3.996 MB / 284 MB, free: 5.859 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.0329, allocations: 63.84 kB / 284.1 MB, free: 5.785 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003305/0.03323, allocations: 269.8 kB / 284.3 MB, free: 5.504 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.742e-05/0.03329, allocations: 29.7 kB / 284.3 MB, free: 5.469 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/0.03356, allocations: 207.6 kB / 284.5 MB, free: 5.262 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002129/0.03377, allocations: 190.5 kB / 284.7 MB, free: 5.074 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/0.03403, allocations: 112 kB / 284.8 MB, free: 4.957 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00029/0.03432, allocations: 0.5274 MB / 285.4 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.03564, allocations: 413 kB / 285.8 MB, free: 4.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.03702, allocations: 0.4895 MB / 286.3 MB, free: 3.504 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002377/0.0394, allocations: 0.7617 MB / 287 MB, free: 2.723 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.0394, allocations: 0 / 287 MB, free: 2.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002848/0.04225, allocations: 0.9228 MB / 287.9 MB, free: 1.793 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.04227, allocations: 6.031 kB / 288 MB, free: 1.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.04228, allocations: 4 kB / 288 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.0423, allocations: 7.938 kB / 288 MB, free: 1.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009438/0.04325, allocations: 151.9 kB / 288.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.529e-05/0.04326, allocations: 7.984 kB / 288.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006906/0.04395, allocations: 71.86 kB / 288.2 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.611e-05/0.04402, allocations: 23.98 kB / 288.2 MB, free: 1.527 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002745/0.04429, allocations: 208.4 kB / 288.4 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.04442, allocations: 39.81 kB / 288.5 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001511/0.04457, allocations: 51.31 kB / 288.5 MB, free: 1.227 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.04458, allocations: 8 kB / 288.5 MB, free: 1.219 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.04458, allocations: 4 kB / 288.5 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.04459, allocations: 3.984 kB / 288.5 MB, free: 1.211 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004309/0.0489, allocations: 1.795 MB / 290.3 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.04891, allocations: 8 kB / 290.3 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006039/0.04952, allocations: 131.9 kB / 290.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.819e-05/0.04954, allocations: 15.98 kB / 290.5 MB, free: 15.07 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.735e-05/0.04959, allocations: 16 kB / 290.5 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.379e-05/0.04961, allocations: 11.94 kB / 290.5 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.935e-05/0.04963, allocations: 15.94 kB / 290.5 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003161/0.05279, allocations: 1.27 MB / 291.8 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001937/0.05298, allocations: 67.8 kB / 291.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.758e-05/0.05305, allocations: 23.98 kB / 291.9 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004677/0.05352, allocations: 51.95 kB / 291.9 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.05374, allocations: 91.64 kB / 292 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.05379, allocations: 24 kB / 292 MB, free: 13.33 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002246/0.05402, allocations: 180.2 kB / 292.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05402, allocations: 0 / 292.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005355/0.05455, allocations: 104 kB / 292.3 MB, free: 13.05 MB / 282.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0002116/0.05476, allocations: 119.1 kB / 292.4 MB, free: 12.93 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002339/0.0571, allocations: 0.7371 MB / 293.2 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.05711, allocations: 4 kB / 293.2 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008573/0.05796, allocations: 298.2 kB / 293.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006338/0.0586, allocations: 82.7 kB / 293.5 MB, free: 11.81 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.06102, allocations: 1.059 MB / 294.6 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/0.06124, allocations: 168.2 kB / 294.8 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003905/0.06163, allocations: 74.88 kB / 294.8 MB, free: 10.31 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002267/0.06186, allocations: 40.48 kB / 294.9 MB, free: 10.27 MB / 282.7 MB Notification: Performance of SimCode: time 1.353e-06/0.06186, allocations: 4 kB / 294.9 MB, free: 10.27 MB / 282.7 MB Notification: Performance of Templates: time 0.01254/0.0744, allocations: 6.137 MB / 301 MB, free: 4.207 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.7678398550488055]