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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=2000,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=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001584/0.001584, allocations: 107.5 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001866/0.001866, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 241.8 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 43.48 kB / 300.6 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09937, allocations: 49.44 MB / 350 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003797/0.1032, allocations: 2.384 MB / 352.4 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.105, allocations: 0.9326 MB / 353.4 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002019/0.1052, allocations: 4 kB / 353.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002483/0.1055, allocations: 31.77 kB / 353.4 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005141/0.1061, allocations: 119.4 kB / 353.5 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003595/0.1064, allocations: 147.8 kB / 353.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004534/0.1069, allocations: 398.7 kB / 354 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.1071, allocations: 64.55 kB / 354.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002643/0.1074, allocations: 171.4 kB / 354.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003138/0.1077, allocations: 203.3 kB / 354.5 MB, free: 432 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.674e-05/0.1078, allocations: 16 kB / 354.5 MB, free: 416 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.108, allocations: 95.88 kB / 354.6 MB, free: 320 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.1081, allocations: 87.77 kB / 354.7 MB, free: 232 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002069/0.1084, allocations: 143.2 kB / 354.8 MB, free: 88 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003712/0.1087, allocations: 335.5 kB / 355.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.1087, allocations: 0 / 355.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.72e-07/0.1088, allocations: 0 / 355.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.1088, allocations: 0 / 355.1 MB, free: 15.76 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.001254/0.11, allocations: 0.62 MB / 355.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1101, allocations: 19.91 kB / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003214/0.1104, allocations: 48.53 kB / 355.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004456/0.1109, allocations: 307.7 kB / 356.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.111, allocations: 88.52 kB / 356.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.16e-05/0.1111, allocations: 28.38 kB / 356.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007458/0.1118, allocations: 377.4 kB / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.1119, allocations: 4 kB / 356.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.1119, allocations: 8 kB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/0.1119, allocations: 8 kB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009647/0.1129, allocations: 421.9 kB / 357 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.115, allocations: 1.241 MB / 358.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006716/0.1157, allocations: 368.8 kB / 358.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.1161, allocations: 188.8 kB / 358.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.1161, allocations: 4 kB / 358.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.1161, allocations: 34.56 kB / 358.9 MB, free: 11.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.144e-06/0.1162, allocations: 0 / 358.9 MB, free: 11.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004816/0.121, allocations: 1.93 MB / 360.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.1211, allocations: 84.86 kB / 360.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002971/0.1214, allocations: 242.2 kB / 361.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.853e-05/0.1214, allocations: 33.7 kB / 361.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1215, allocations: 148.6 kB / 361.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.1217, allocations: 141.9 kB / 361.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.1218, allocations: 86.02 kB / 361.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.122, allocations: 338.8 kB / 361.8 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000385/0.1224, allocations: 164.8 kB / 362 MB, free: 8.516 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/0.1228, allocations: 229.9 kB / 362.2 MB, free: 8.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006826/0.1235, allocations: 347.2 kB / 362.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1235, allocations: 0 / 362.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001154/0.1246, allocations: 0.5551 MB / 363.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.1247, allocations: 4 kB / 363.1 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.1247, allocations: 4 kB / 363.1 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007481/0.1254, allocations: 252.8 kB / 363.4 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.1257, allocations: 51.89 kB / 363.4 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003911/0.1296, allocations: 2.64 MB / 366.1 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002946/0.1299, allocations: 23.98 kB / 366.1 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/0.13, allocations: 15.98 kB / 366.1 MB, free: 4.23 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.0002123/0.1302, allocations: 148.8 kB / 366.3 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.324e-05/0.1303, allocations: 31.72 kB / 366.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.744e-05/0.1304, allocations: 46.98 kB / 366.3 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.1304, allocations: 7.938 kB / 366.3 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1304, allocations: 0 / 366.3 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1304, allocations: 3.984 kB / 366.3 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001912/0.1324, allocations: 1.097 MB / 367.4 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.1324, allocations: 4 kB / 367.4 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.1326, allocations: 43.91 kB / 367.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006834/0.1333, allocations: 232.7 kB / 367.7 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.653e-05/0.1334, allocations: 19.98 kB / 367.7 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1551/0.2885, allocations: 2.597 MB / 370.3 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2886, allocations: 0.9062 kB / 370.3 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.2903, allocations: 0.8154 MB / 371.1 MB, free: 25.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.2905, allocations: 135.9 kB / 371.3 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.82e-05/0.2906, allocations: 13.81 kB / 371.3 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.2909, allocations: 22.36 kB / 371.3 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.2911, allocations: 59 kB / 371.4 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.481e-05/0.2912, allocations: 15.41 kB / 371.4 MB, free: 25.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002223/0.2914, allocations: 180.8 kB / 371.6 MB, free: 24.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2914, allocations: 0.625 kB / 371.6 MB, free: 24.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006769/0.2921, allocations: 140.1 kB / 371.7 MB, free: 24.96 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.0002816/0.2924, allocations: 139.4 kB / 371.8 MB, free: 24.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001292/0.2937, allocations: 0.6227 MB / 372.5 MB, free: 24.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2937, allocations: 1.438 kB / 372.5 MB, free: 24.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000743/0.2944, allocations: 433.8 kB / 372.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004205/0.2949, allocations: 31.45 kB / 372.9 MB, free: 24.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.2963, allocations: 0.8317 MB / 373.7 MB, free: 24.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.2966, allocations: 0.7828 MB / 374.5 MB, free: 23.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.2967, allocations: 36.22 kB / 374.6 MB, free: 23.32 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2967, allocations: 0 / 374.6 MB, free: 23.32 MB / 302.1 MB Notification: Performance of Templates: time 0.009609/0.3063, allocations: 5.215 MB / 379.8 MB, free: 22.77 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (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) 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) Reference file matches