Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000812/0.0008121, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.0009384/0.0009389, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.326/1.326, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002757/0.0002757, allocations: 12.47 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1094, allocations: 50.42 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002621/0.1121, allocations: 2.106 MB / 353.9 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.1139, allocations: 0.9599 MB / 354.9 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000233/0.1142, allocations: 7.938 kB / 354.9 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002277/0.1144, allocations: 35.77 kB / 354.9 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005827/0.115, allocations: 139.2 kB / 355.1 MB, free: 448 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.1154, allocations: 155.8 kB / 355.2 MB, free: 292 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005534/0.116, allocations: 446.5 kB / 355.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.1162, allocations: 81.36 kB / 355.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003726/0.1166, allocations: 179.4 kB / 355.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003726/0.1169, allocations: 219.2 kB / 356.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.475e-05/0.117, allocations: 23.98 kB / 356.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002481/0.1173, allocations: 95.88 kB / 356.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.1174, allocations: 91.7 kB / 356.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002147/0.1177, allocations: 200.7 kB / 356.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005514/0.1182, allocations: 470.7 kB / 357 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1182, allocations: 0 / 357 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1182, allocations: 0 / 357 MB, free: 14.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.1183, allocations: 0 / 357 MB, free: 14.5 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001202/0.1195, allocations: 0.612 MB / 357.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1195, allocations: 12.03 kB / 357.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003227/0.1198, allocations: 48.55 kB / 357.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004657/0.1203, allocations: 327.3 kB / 358 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.1205, allocations: 92.61 kB / 358.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.348e-05/0.1206, allocations: 32.28 kB / 358.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008346/0.1214, allocations: 421 kB / 358.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.1214, allocations: 4 kB / 358.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.162e-05/0.1215, allocations: 16 kB / 358.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.1215, allocations: 8 kB / 358.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.1226, allocations: 482.3 kB / 359 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.1243, allocations: 0.993 MB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008617/0.1252, allocations: 420.4 kB / 360.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000486/0.1257, allocations: 234.1 kB / 360.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.564e-05/0.1257, allocations: 12.44 kB / 360.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.1257, allocations: 42.94 kB / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.804e-06/0.1258, allocations: 0 / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005334/0.1311, allocations: 2.242 MB / 362.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.1312, allocations: 85.67 kB / 363 MB, free: 8.156 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.1315, allocations: 255.1 kB / 363.3 MB, free: 7.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.374e-05/0.1315, allocations: 37.7 kB / 363.3 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.893e-05/0.1316, allocations: 141.1 kB / 363.4 MB, free: 7.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.1318, allocations: 177.4 kB / 363.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.636e-05/0.1319, allocations: 53.62 kB / 363.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.132, allocations: 342.8 kB / 364 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004675/0.1325, allocations: 201 kB / 364.2 MB, free: 6.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005048/0.133, allocations: 256.6 kB / 364.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008961/0.1339, allocations: 404.3 kB / 364.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.1339, allocations: 0 / 364.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001245/0.1352, allocations: 0.629 MB / 365.5 MB, free: 5.641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1352, allocations: 7.938 kB / 365.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.1352, allocations: 0 / 365.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007321/0.1359, allocations: 266.6 kB / 365.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003071/0.1363, allocations: 71.89 kB / 365.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003668/0.1399, allocations: 2.701 MB / 368.5 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003128/0.1403, allocations: 40.06 kB / 368.6 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.514e-05/0.1403, allocations: 19.98 kB / 368.6 MB, free: 2.41 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002023/0.1405, allocations: 149.8 kB / 368.7 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.36e-05/0.1406, allocations: 31.62 kB / 368.8 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001162/0.1407, allocations: 47.3 kB / 368.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.1407, allocations: 19.86 kB / 368.8 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1408, allocations: 4 kB / 368.8 MB, free: 2.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.1408, allocations: 3.984 kB / 368.8 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/0.143, allocations: 1.28 MB / 370.1 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.143, allocations: 0 / 370.1 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/0.1433, allocations: 67.92 kB / 370.2 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006833/0.144, allocations: 244.6 kB / 370.4 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/0.1441, allocations: 15.98 kB / 370.4 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1766/0.3207, allocations: 2.595 MB / 373 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.3207, allocations: 4.688 kB / 373 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.3227, allocations: 0.9782 MB / 374 MB, free: 23.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.3229, allocations: 156.2 kB / 374.2 MB, free: 23.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.57e-05/0.323, allocations: 11 kB / 374.2 MB, free: 23.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.3233, allocations: 36.31 kB / 374.2 MB, free: 23.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.3234, allocations: 72.52 kB / 374.3 MB, free: 23.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.57e-05/0.3235, allocations: 21.89 kB / 374.3 MB, free: 23.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002156/0.3237, allocations: 195.5 kB / 374.5 MB, free: 23.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3237, allocations: 3.188 kB / 374.5 MB, free: 23.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006655/0.3244, allocations: 151.8 kB / 374.6 MB, free: 23.37 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.0002486/0.3247, allocations: 142.7 kB / 374.8 MB, free: 23.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.3261, allocations: 0.7084 MB / 375.5 MB, free: 23.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.3261, allocations: 3.562 kB / 375.5 MB, free: 23.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008059/0.3269, allocations: 493.1 kB / 376 MB, free: 22.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.3273, allocations: 41.2 kB / 376 MB, free: 22.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.3288, allocations: 0.9769 MB / 377 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.3291, allocations: 0.7966 MB / 377.8 MB, free: 21.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002235/0.3293, allocations: 64.38 kB / 377.8 MB, free: 21.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.3295, allocations: 29.05 kB / 377.9 MB, free: 21.57 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3295, allocations: 0 / 377.9 MB, free: 21.57 MB / 302.1 MB Notification: Performance of Templates: time 0.01347/0.3429, allocations: 7.165 MB / 385 MB, free: 19.75 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches