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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008294/0.0008294, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009182/0.0009182, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9001/0.9001, allocations: 177 MB / 205.2 MB, free: 5.043 MB / 186.7 MB " [Timeout remaining time 179] 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=5008,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=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 273.3 MB, free: 1.102 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.178e-05/1.32e-05, allocations: 6.312 kB / 273.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002207/0.00222, allocations: 2.157 MB / 275.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008605/0.003081, allocations: 0.6819 MB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.301e-05/0.003174, allocations: 7.938 kB / 276.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.003406, allocations: 43.64 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.003509, allocations: 51.62 kB / 276.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002403/0.003749, allocations: 127.7 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002786/0.004028, allocations: 351.1 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.004143, allocations: 54.5 kB / 276.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.004375, allocations: 207.5 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.004516, allocations: 127.6 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.171e-05/0.004548, allocations: 32 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.793e-05/0.004575, allocations: 32 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.645e-05/0.004642, allocations: 83.77 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.504e-05/0.004707, allocations: 99.7 kB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001917/0.004899, allocations: 215.3 kB / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.282e-06/0.0049, allocations: 0 / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.004901, allocations: 0 / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.976e-06/0.004904, allocations: 0 / 277.6 MB, free: 12.83 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.0005468/0.00545, allocations: 491.8 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.005481, allocations: 15.98 kB / 278.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.242e-05/0.005534, allocations: 44.91 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.005693, allocations: 162 kB / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.00585, allocations: 343.7 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.304e-05/0.005883, allocations: 20.38 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002757/0.006159, allocations: 266.5 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.006169, allocations: 4 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.006188, allocations: 8 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.006194, allocations: 8 kB / 278.9 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.006422, allocations: 160.1 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007443/0.007166, allocations: 0.6162 MB / 279.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002608/0.007427, allocations: 204 kB / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.335e-05/0.0075, allocations: 64.83 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.007521, allocations: 4 kB / 280 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.007543, allocations: 42.5 kB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.363e-06/0.007544, allocations: 0 / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.006393/0.01394, allocations: 3.335 MB / 283.3 MB, free: 6.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.01397, allocations: 63.91 kB / 283.4 MB, free: 6.766 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.01409, allocations: 178.5 kB / 283.6 MB, free: 6.578 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.01412, allocations: 37.7 kB / 283.6 MB, free: 6.535 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.924e-05/0.01417, allocations: 141 kB / 283.8 MB, free: 6.395 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.151e-05/0.01426, allocations: 186.3 kB / 283.9 MB, free: 6.211 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.01438, allocations: 94.3 kB / 284 MB, free: 6.113 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.628e-05/0.01446, allocations: 342.7 kB / 284.4 MB, free: 5.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001587/0.01461, allocations: 132.1 kB / 284.5 MB, free: 5.637 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.01479, allocations: 199.2 kB / 284.7 MB, free: 5.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000314/0.01511, allocations: 327.7 kB / 285 MB, free: 5.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.01511, allocations: 0 / 285 MB, free: 5.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004089/0.01552, allocations: 393.2 kB / 285.4 MB, free: 4.699 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.01553, allocations: 4 kB / 285.4 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.01554, allocations: 4 kB / 285.4 MB, free: 4.691 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.01555, allocations: 4 kB / 285.4 MB, free: 4.688 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.01593, allocations: 155.9 kB / 285.6 MB, free: 4.535 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.01593, allocations: 4 kB / 285.6 MB, free: 4.531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.01616, allocations: 63.92 kB / 285.6 MB, free: 4.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.01619, allocations: 15.98 kB / 285.6 MB, free: 4.453 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.0001147/0.0163, allocations: 148.5 kB / 285.8 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.962e-05/0.01636, allocations: 31.98 kB / 285.8 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.5e-05/0.01641, allocations: 51.3 kB / 285.9 MB, free: 4.215 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.01641, allocations: 4 kB / 285.9 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.01641, allocations: 4 kB / 285.9 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.01642, allocations: 3.984 kB / 285.9 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.01759, allocations: 1.031 MB / 286.9 MB, free: 3.043 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.01759, allocations: 8 kB / 286.9 MB, free: 3.035 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002569/0.01785, allocations: 131.8 kB / 287 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.01786, allocations: 8 kB / 287 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/0.01788, allocations: 16 kB / 287.1 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.01789, allocations: 19.92 kB / 287.1 MB, free: 2.863 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.01789, allocations: 12.25 kB / 287.1 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005216/0.01842, allocations: 0.6853 MB / 287.8 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.677e-05/0.01849, allocations: 51.78 kB / 287.8 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.01853, allocations: 19.98 kB / 287.9 MB, free: 1.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.01872, allocations: 55.95 kB / 287.9 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.585e-05/0.01881, allocations: 79.64 kB / 288 MB, free: 1.828 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.01884, allocations: 28 kB / 288 MB, free: 1.801 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.949e-05/0.01888, allocations: 45.88 kB / 288.1 MB, free: 1.754 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01888, allocations: 0 / 288.1 MB, free: 1.754 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002518/0.01913, allocations: 92 kB / 288.1 MB, free: 1.664 MB / 266.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.0001005/0.01923, allocations: 108.2 kB / 288.3 MB, free: 1.551 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003694/0.0196, allocations: 340.2 kB / 288.6 MB, free: 1.219 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.0196, allocations: 4 kB / 288.6 MB, free: 1.215 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.01975, allocations: 159.3 kB / 288.7 MB, free: 1.059 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.02007, allocations: 91.95 kB / 288.8 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1035/0.1236, allocations: 0.8511 MB / 289.7 MB, free: 26.05 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.1237, allocations: 109.9 kB / 289.8 MB, free: 25.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003112/0.124, allocations: 63.45 kB / 289.9 MB, free: 25.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000229/0.1242, allocations: 101.5 kB / 290 MB, free: 25.95 MB / 266.7 MB Notification: Performance of SimCode: time 1.352e-06/0.1242, allocations: 3.562 kB / 290 MB, free: 25.95 MB / 266.7 MB Notification: Performance of Templates: time 0.008962/0.1332, allocations: 6.56 MB / 296.5 MB, free: 24.8 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5923760486766696]