Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.001299, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 61.41 kB / 307.1 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1041, allocations: 50.53 MB / 357.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004424/0.1085, allocations: 2.579 MB / 360.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.1107, allocations: 1.123 MB / 361.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.1109, allocations: 15.88 kB / 361.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000324/0.1112, allocations: 55.67 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004727/0.1117, allocations: 144.2 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004475/0.1122, allocations: 167.8 kB / 361.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005927/0.1128, allocations: 0.5063 MB / 362.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.113, allocations: 96.91 kB / 362.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003838/0.1134, allocations: 235.3 kB / 362.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003495/0.1138, allocations: 275.1 kB / 362.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.179e-05/0.1138, allocations: 40 kB / 362.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002537/0.1141, allocations: 131.9 kB / 363 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.1143, allocations: 115.7 kB / 363.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002271/0.1145, allocations: 207 kB / 363.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005071/0.115, allocations: 419.2 kB / 363.7 MB, free: 8.289 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.115, allocations: 4 kB / 363.7 MB, free: 8.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.115, allocations: 0 / 363.7 MB, free: 8.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.115, allocations: 0 / 363.7 MB, free: 8.285 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.001427/0.1165, allocations: 0.7133 MB / 364.5 MB, free: 7.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.1165, allocations: 8.031 kB / 364.5 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004183/0.1169, allocations: 64.53 kB / 364.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/0.1174, allocations: 315.3 kB / 364.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.1176, allocations: 92.61 kB / 364.9 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.607e-05/0.1177, allocations: 32.38 kB / 365 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008862/0.1186, allocations: 421 kB / 365.4 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.1186, allocations: 7.984 kB / 365.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.008e-05/0.1187, allocations: 12 kB / 365.4 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.1187, allocations: 8 kB / 365.4 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.1197, allocations: 474.1 kB / 365.9 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.1216, allocations: 0.9929 MB / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009333/0.1226, allocations: 392.5 kB / 367.2 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000513/0.1231, allocations: 230.1 kB / 367.5 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.297e-05/0.1232, allocations: 4.438 kB / 367.5 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/0.1232, allocations: 39 kB / 367.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 2.064e-06/0.1232, allocations: 192 / 367.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005776/0.129, allocations: 2.16 MB / 369.7 MB, free: 2.066 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.1291, allocations: 81.67 kB / 369.7 MB, free: 1.969 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004362/0.1296, allocations: 276.9 kB / 370 MB, free: 1.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.322e-05/0.1296, allocations: 33.7 kB / 370 MB, free: 1.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.1297, allocations: 141.1 kB / 370.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001755/0.1299, allocations: 181.4 kB / 370.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.1301, allocations: 98.23 kB / 370.5 MB, free: 1.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.1303, allocations: 338.8 kB / 370.8 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004771/0.1308, allocations: 193 kB / 371 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005086/0.1313, allocations: 236.6 kB / 371.2 MB, free: 476 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008849/0.1322, allocations: 392.3 kB / 371.6 MB, free: 76 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1322, allocations: 0 / 371.6 MB, free: 76 kB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.1645/0.2967, allocations: 0.6054 MB / 372.2 MB, free: 20.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.2968, allocations: 10.81 kB / 372.2 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.2968, allocations: 1.125 kB / 372.2 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009171/0.2978, allocations: 293.9 kB / 372.5 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003709/0.2981, allocations: 69.86 kB / 372.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003799/0.302, allocations: 2.94 MB / 375.5 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003704/0.3024, allocations: 29.3 kB / 375.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.639e-05/0.3024, allocations: 26.89 kB / 375.6 MB, free: 18.43 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.0002061/0.3026, allocations: 161.1 kB / 375.7 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3027, allocations: 33.88 kB / 375.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.3029, allocations: 47.66 kB / 375.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.3029, allocations: 8.844 kB / 375.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.3029, allocations: 1.125 kB / 375.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.3029, allocations: 6.75 kB / 375.8 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.3051, allocations: 1.299 MB / 377.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3051, allocations: 1.375 kB / 377.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003271/0.3055, allocations: 66.61 kB / 377.2 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007373/0.3062, allocations: 292.8 kB / 377.5 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.59e-05/0.3063, allocations: 17.7 kB / 377.5 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003285/0.3096, allocations: 2.842 MB / 380.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.3096, allocations: 1.688 kB / 380.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00179/0.3114, allocations: 0.9581 MB / 381.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.3116, allocations: 159.4 kB / 381.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.074e-05/0.3116, allocations: 12 kB / 381.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.312, allocations: 30.81 kB / 381.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.3121, allocations: 69.61 kB / 381.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-05/0.3122, allocations: 24.09 kB / 381.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002282/0.3124, allocations: 205 kB / 381.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3124, allocations: 0 / 381.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006838/0.3131, allocations: 149.2 kB / 381.9 MB, free: 14.54 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.001285/0.3144, allocations: 384.2 kB / 382.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.316, allocations: 0.7192 MB / 383 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.316, allocations: 0 / 383 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007651/0.3167, allocations: 481.2 kB / 383.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004579/0.3172, allocations: 54.09 kB / 383.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.3187, allocations: 0.9824 MB / 384.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.319, allocations: 0.795 MB / 385.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.3191, allocations: 46.61 kB / 385.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3191, allocations: 0 / 385.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of Templates: time 0.01011/0.3293, allocations: 6.678 MB / 392 MB, free: 10.23 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches