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.001526/0.001526, 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.001691/0.001691, 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.37/1.37, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 59.42 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1047, allocations: 50.53 MB / 357.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004379/0.1091, allocations: 2.586 MB / 360.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.1113, allocations: 1.127 MB / 361.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002794/0.1116, allocations: 7.938 kB / 361.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003843/0.1121, allocations: 55.62 kB / 361.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006803/0.1127, allocations: 152.1 kB / 361.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005617/0.1133, allocations: 159.8 kB / 361.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006846/0.114, allocations: 0.5063 MB / 362.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002369/0.1143, allocations: 104.8 kB / 362.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005063/0.1148, allocations: 231.3 kB / 362.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004632/0.1153, allocations: 279.2 kB / 362.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.1154, allocations: 44 kB / 362.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000378/0.1158, allocations: 127.9 kB / 363 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.116, allocations: 115.7 kB / 363.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002831/0.1163, allocations: 199.1 kB / 363.3 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005722/0.1169, allocations: 423.3 kB / 363.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1169, allocations: 0 / 363.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1169, allocations: 0 / 363.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.731e-05/0.1169, allocations: 0 / 363.7 MB, free: 8.316 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.001652/0.1186, allocations: 0.7133 MB / 364.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.1186, allocations: 8.031 kB / 364.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004507/0.1191, allocations: 60.53 kB / 364.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004939/0.1196, allocations: 323.3 kB / 364.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.1198, allocations: 92.61 kB / 364.9 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.24e-05/0.1198, allocations: 28.38 kB / 364.9 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009294/0.1208, allocations: 421 kB / 365.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.1208, allocations: 4 kB / 365.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.08e-05/0.1209, allocations: 8 kB / 365.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.1209, allocations: 8 kB / 365.4 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.1219, allocations: 482.1 kB / 365.8 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.1238, allocations: 0.989 MB / 366.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008756/0.1247, allocations: 400.4 kB / 367.2 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004942/0.1252, allocations: 230.1 kB / 367.4 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.532e-05/0.1252, allocations: 8.422 kB / 367.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.1253, allocations: 43 kB / 367.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.994e-06/0.1253, allocations: 0 / 367.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005544/0.1308, allocations: 2.144 MB / 369.6 MB, free: 2.102 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.1309, allocations: 85.61 kB / 369.7 MB, free: 2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003615/0.1313, allocations: 280.9 kB / 370 MB, free: 1.723 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.1314, allocations: 33.7 kB / 370 MB, free: 1.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.1315, allocations: 141.1 kB / 370.2 MB, free: 1.539 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.1316, allocations: 181.3 kB / 370.3 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.1318, allocations: 94.23 kB / 370.4 MB, free: 1.262 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.132, allocations: 342.8 kB / 370.8 MB, free: 0.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004612/0.1324, allocations: 193 kB / 370.9 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/0.133, allocations: 240.6 kB / 371.2 MB, free: 500 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008619/0.1338, allocations: 384.3 kB / 371.6 MB, free: 108 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1338, allocations: 0 / 371.6 MB, free: 108 kB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.1846/0.3185, allocations: 0.6111 MB / 372.2 MB, free: 20.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/0.3186, allocations: 10.59 kB / 372.2 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3186, allocations: 0 / 372.2 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009896/0.3196, allocations: 295.8 kB / 372.5 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003679/0.32, allocations: 66.69 kB / 372.5 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004165/0.3242, allocations: 2.942 MB / 375.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/0.3246, allocations: 37.45 kB / 375.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.231e-05/0.3246, allocations: 15.86 kB / 375.5 MB, free: 18.45 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.0002169/0.3249, allocations: 162.3 kB / 375.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.325, allocations: 34.31 kB / 375.7 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.3251, allocations: 48.36 kB / 375.8 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.3251, allocations: 5.5 kB / 375.8 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3251, allocations: 4.281 kB / 375.8 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3251, allocations: 6.609 kB / 375.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.3274, allocations: 1.296 MB / 377.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3274, allocations: 1.594 kB / 377.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003347/0.3278, allocations: 68.55 kB / 377.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007387/0.3285, allocations: 287.8 kB / 377.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.511e-05/0.3286, allocations: 20.33 kB / 377.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003281/0.3318, allocations: 2.849 MB / 380.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.3319, allocations: 0 / 380.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.3336, allocations: 0.9617 MB / 381.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001588/0.3338, allocations: 159.1 kB / 381.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.78e-05/0.3339, allocations: 17.27 kB / 381.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003163/0.3342, allocations: 25.47 kB / 381.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.3344, allocations: 73.73 kB / 381.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.126e-05/0.3345, allocations: 19.45 kB / 381.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002443/0.3347, allocations: 200 kB / 381.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3347, allocations: 0 / 381.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006464/0.3354, allocations: 151.9 kB / 381.9 MB, free: 14.56 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.0008888/0.3363, allocations: 377.5 kB / 382.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.3379, allocations: 0.7239 MB / 383 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3379, allocations: 1.031 kB / 383 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008803/0.3388, allocations: 477.3 kB / 383.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004829/0.3393, allocations: 48.89 kB / 383.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.3409, allocations: 0.9838 MB / 384.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.3412, allocations: 0.7957 MB / 385.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.3414, allocations: 50.14 kB / 385.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3414, allocations: 0 / 385.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of Templates: time 0.01093/0.3523, allocations: 6.677 MB / 392 MB, free: 10.25 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.0.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