Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 102.5 kB / 19.61 MB, free: 2.559 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 195.2 kB / 22.76 MB, free: 5.621 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 225.6 MB / 251.4 MB, free: 13.54 MB / 206.1 MB [Timeout remaining time 88] 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.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 47.92 kB / 369.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.302, allocations: 52.14 MB / 421.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.005934/0.3079, allocations: 2.359 MB / 423.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002552/0.3105, allocations: 0.917 MB / 424.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003113/0.3108, allocations: 7.938 kB / 424.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003237/0.3111, allocations: 47.58 kB / 424.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008173/0.312, allocations: 139.2 kB / 424.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006572/0.3126, allocations: 179.6 kB / 424.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000826/0.3134, allocations: 414.8 kB / 425.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.3136, allocations: 48.67 kB / 425.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005103/0.3142, allocations: 191.4 kB / 425.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006124/0.3148, allocations: 227.3 kB / 425.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.3149, allocations: 32 kB / 425.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003805/0.3153, allocations: 119.9 kB / 425.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.3155, allocations: 99.66 kB / 426 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.3157, allocations: 167.2 kB / 426.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008257/0.3165, allocations: 447.6 kB / 426.6 MB, free: 9.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3165, allocations: 0 / 426.6 MB, free: 9.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3166, allocations: 0 / 426.6 MB, free: 9.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.3166, allocations: 0 / 426.6 MB, free: 9.809 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001787/0.3184, allocations: 0.639 MB / 427.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.3184, allocations: 8.031 kB / 427.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004705/0.3189, allocations: 56.67 kB / 427.3 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007586/0.3196, allocations: 304.7 kB / 427.6 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.3198, allocations: 92.52 kB / 427.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.815e-05/0.3199, allocations: 28.36 kB / 427.7 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.321, allocations: 381.4 kB / 428.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.821e-05/0.321, allocations: 3.953 kB / 428.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.451e-05/0.321, allocations: 16 kB / 428.1 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.321, allocations: 8 kB / 428.1 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.3223, allocations: 417.9 kB / 428.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00326/0.3255, allocations: 1.242 MB / 429.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009779/0.3265, allocations: 341.1 kB / 430.1 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005154/0.327, allocations: 168.8 kB / 430.3 MB, free: 5.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.3271, allocations: 4 kB / 430.3 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.3271, allocations: 38.56 kB / 430.3 MB, free: 5.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.575e-06/0.3271, allocations: 0 / 430.3 MB, free: 5.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.006813/0.3339, allocations: 1.911 MB / 432.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.91e-05/0.334, allocations: 88.86 kB / 432.3 MB, free: 3.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003441/0.3344, allocations: 242.2 kB / 432.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.763e-05/0.3344, allocations: 37.7 kB / 432.6 MB, free: 3.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.3345, allocations: 136.8 kB / 432.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.3347, allocations: 158.7 kB / 432.9 MB, free: 3.188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.3348, allocations: 82.11 kB / 433 MB, free: 3.102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.335, allocations: 338.8 kB / 433.3 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003922/0.3354, allocations: 160.8 kB / 433.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004375/0.3358, allocations: 233.9 kB / 433.7 MB, free: 2.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007234/0.3366, allocations: 343.2 kB / 434 MB, free: 2.012 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3366, allocations: 0 / 434 MB, free: 2.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001177/0.3377, allocations: 0.5551 MB / 434.6 MB, free: 1.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.3378, allocations: 4 kB / 434.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3378, allocations: 4 kB / 434.6 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007818/0.3385, allocations: 252.8 kB / 434.8 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002447/0.3388, allocations: 51.91 kB / 434.9 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004394/0.3432, allocations: 2.887 MB / 437.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002717/0.3435, allocations: 23.98 kB / 437.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.3435, allocations: 19.92 kB / 437.8 MB, free: 14.06 MB / 350.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: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002279/0.3437, allocations: 161.6 kB / 438 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.349e-05/0.3438, allocations: 23.86 kB / 438 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.3439, allocations: 47.05 kB / 438 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3439, allocations: 8 kB / 438 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.3439, allocations: 4 kB / 438.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.3439, allocations: 7.922 kB / 438.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002066/0.346, allocations: 1.075 MB / 439.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.346, allocations: 0 / 439.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/0.3462, allocations: 47.91 kB / 439.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007103/0.347, allocations: 237.1 kB / 439.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.866e-05/0.347, allocations: 11.98 kB / 439.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004281/0.3513, allocations: 2.847 MB / 442.3 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3513, allocations: 0 / 442.3 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/0.353, allocations: 0.8121 MB / 443.1 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.3532, allocations: 136.9 kB / 443.2 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.734e-05/0.3532, allocations: 11.94 kB / 443.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.3535, allocations: 23.97 kB / 443.2 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.3537, allocations: 59.91 kB / 443.3 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.039e-05/0.3537, allocations: 15.98 kB / 443.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002333/0.3539, allocations: 184.2 kB / 443.5 MB, free: 8.121 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3539, allocations: 0 / 443.5 MB, free: 8.121 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006512/0.3546, allocations: 139.9 kB / 443.6 MB, free: 7.984 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002699/0.3549, allocations: 139.2 kB / 443.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.3564, allocations: 0.6018 MB / 444.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3564, allocations: 4.062 kB / 444.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008436/0.3572, allocations: 417.4 kB / 444.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.3577, allocations: 35.88 kB / 444.8 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.3592, allocations: 0.7383 MB / 445.6 MB, free: 5.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004791/0.3596, allocations: 0.7761 MB / 446.3 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.3598, allocations: 35.41 kB / 446.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3598, allocations: 0 / 446.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of Templates: time 0.01026/0.37, allocations: 5.26 MB / 451.6 MB, free: 15.89 MB / 366.1 MB [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] [Timeout remaining time 660] Reference file matches