Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008298/0.0008297, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009554/0.0009554, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.7 MB / 246.8 MB, free: 9.707 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002292/0.0002294, allocations: 8 kB / 307.7 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1062, allocations: 51.53 MB / 359.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003225/0.1095, allocations: 2.131 MB / 361.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.1115, allocations: 1.034 MB / 362.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002565/0.1118, allocations: 7.938 kB / 362.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003346/0.1122, allocations: 43.75 kB / 362.5 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005566/0.1127, allocations: 138.5 kB / 362.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004187/0.1132, allocations: 143.8 kB / 362.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005782/0.1138, allocations: 450.6 kB / 363.2 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.1139, allocations: 60.69 kB / 363.2 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003064/0.1143, allocations: 175.4 kB / 363.4 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003724/0.1146, allocations: 231.2 kB / 363.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.993e-05/0.1147, allocations: 20 kB / 363.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002742/0.115, allocations: 107.9 kB / 363.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.1152, allocations: 83.72 kB / 363.8 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.1154, allocations: 188.9 kB / 364 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005881/0.116, allocations: 466.7 kB / 364.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.116, allocations: 4 kB / 364.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.116, allocations: 0 / 364.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.116, allocations: 0 / 364.5 MB, free: 7.832 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001216/0.1172, allocations: 0.6045 MB / 365.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.1173, allocations: 8.031 kB / 365.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003318/0.1176, allocations: 48.55 kB / 365.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004692/0.1181, allocations: 301.3 kB / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.1182, allocations: 92.45 kB / 365.5 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.751e-05/0.1183, allocations: 24.38 kB / 365.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000791/0.1191, allocations: 401.3 kB / 365.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.1191, allocations: 7.906 kB / 366 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.105e-05/0.1192, allocations: 12 kB / 366 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.1192, allocations: 4 kB / 366 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008958/0.1201, allocations: 425.9 kB / 366.4 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.1224, allocations: 1.273 MB / 367.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007415/0.1231, allocations: 346.5 kB / 368 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004082/0.1235, allocations: 188.8 kB / 368.2 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.611e-05/0.1236, allocations: 4 kB / 368.2 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.1236, allocations: 42.56 kB / 368.2 MB, free: 3.875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.534e-06/0.1236, allocations: 4 kB / 368.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005152/0.1288, allocations: 1.957 MB / 370.2 MB, free: 1.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/0.1289, allocations: 88.8 kB / 370.3 MB, free: 1.695 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003258/0.1292, allocations: 242.2 kB / 370.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.1293, allocations: 41.64 kB / 370.6 MB, free: 1.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.834e-05/0.1294, allocations: 144.5 kB / 370.7 MB, free: 1.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.1295, allocations: 150 kB / 370.8 MB, free: 1.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.69e-05/0.1296, allocations: 45.69 kB / 370.9 MB, free: 1.055 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1297, allocations: 334.8 kB / 371.2 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004007/0.1301, allocations: 164.8 kB / 371.4 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004333/0.1306, allocations: 233.9 kB / 371.6 MB, free: 320 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1904/0.321, allocations: 341.3 kB / 371.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.321, allocations: 1.188 kB / 371.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001596/0.3226, allocations: 0.5537 MB / 372.5 MB, free: 18.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.3227, allocations: 5.906 kB / 372.5 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.3227, allocations: 2.891 kB / 372.5 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009608/0.3237, allocations: 295.1 kB / 372.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002783/0.3239, allocations: 59.27 kB / 372.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004054/0.328, allocations: 2.669 MB / 375.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003102/0.3283, allocations: 31.44 kB / 375.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.077e-05/0.3284, allocations: 22.78 kB / 375.6 MB, free: 17.59 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: 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.0002616/0.3287, allocations: 160 kB / 375.7 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.706e-05/0.3288, allocations: 28.31 kB / 375.7 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/0.3289, allocations: 46.28 kB / 375.8 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.445e-06/0.3289, allocations: 4.219 kB / 375.8 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.3289, allocations: 1.578 kB / 375.8 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.3289, allocations: 2.484 kB / 375.8 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00224/0.3312, allocations: 1.117 MB / 376.9 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.3312, allocations: 2.172 kB / 376.9 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002503/0.3314, allocations: 53.81 kB / 377 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008547/0.3323, allocations: 285.7 kB / 377.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.191e-05/0.3324, allocations: 19.7 kB / 377.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003768/0.3361, allocations: 2.606 MB / 379.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.3362, allocations: 0.7031 kB / 379.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.3382, allocations: 0.8255 MB / 380.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002551/0.3384, allocations: 158 kB / 380.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.484e-05/0.3385, allocations: 7.781 kB / 380.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002953/0.3388, allocations: 31.25 kB / 380.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000301/0.3391, allocations: 66.61 kB / 381 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.491e-05/0.3392, allocations: 16.97 kB / 381 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000339/0.3395, allocations: 186.8 kB / 381.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3395, allocations: 0 / 381.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009237/0.3405, allocations: 138.4 kB / 381.3 MB, free: 14.11 MB / 302.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.0009929/0.3415, allocations: 379.7 kB / 381.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.343, allocations: 0.6255 MB / 382.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.343, allocations: 0 / 382.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007035/0.3437, allocations: 439.7 kB / 382.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000456/0.3442, allocations: 44 kB / 382.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.3456, allocations: 0.8577 MB / 383.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.3459, allocations: 0.7829 MB / 384.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002658/0.3462, allocations: 72.92 kB / 384.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3463, allocations: 35.22 kB / 384.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3463, allocations: 0 / 384.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of Templates: time 0.01316/0.3595, allocations: 7.05 MB / 391.6 MB, free: 9.887 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches