Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001502/0.001502, allocations: 175.3 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.4 MB / 222.9 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007964/0.0007964, allocations: 91.92 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003321, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2562, allocations: 47.57 MB / 375.1 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002151/0.2584, allocations: 1.954 MB / 377 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.2599, allocations: 0.9167 MB / 378 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.26, allocations: 3.625 kB / 378 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002262/0.2603, allocations: 31.52 kB / 378 MB, free: 43.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003918/0.2607, allocations: 120.8 kB / 378.1 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.2609, allocations: 130.4 kB / 378.2 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003333/0.2613, allocations: 368.5 kB / 378.6 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.2614, allocations: 67.22 kB / 378.7 MB, free: 42.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001735/0.2616, allocations: 159.3 kB / 378.8 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002472/0.2619, allocations: 186 kB / 379 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.096e-05/0.2619, allocations: 21.16 kB / 379 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001881/0.2621, allocations: 85.66 kB / 379.1 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.2623, allocations: 85.2 kB / 379.2 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.2624, allocations: 167.9 kB / 379.3 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003098/0.2627, allocations: 320.4 kB / 379.7 MB, free: 42.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2627, allocations: 0 / 379.7 MB, free: 42.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2627, allocations: 0.9688 kB / 379.7 MB, free: 42.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.2628, allocations: 0 / 379.7 MB, free: 42.03 MB / 298.7 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.001071/0.2638, allocations: 0.5864 MB / 380.2 MB, free: 41.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.2639, allocations: 8.469 kB / 380.3 MB, free: 41.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003017/0.2642, allocations: 44.39 kB / 380.3 MB, free: 41.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/0.2646, allocations: 299.4 kB / 380.6 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.2647, allocations: 91.77 kB / 380.7 MB, free: 41.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.153e-05/0.2648, allocations: 29.61 kB / 380.7 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006356/0.2654, allocations: 382.6 kB / 381.1 MB, free: 40.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.2655, allocations: 5.438 kB / 381.1 MB, free: 40.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.2655, allocations: 10.06 kB / 381.1 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.2655, allocations: 11.47 kB / 381.1 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008417/0.2664, allocations: 424 kB / 381.5 MB, free: 40.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/0.2684, allocations: 1.251 MB / 382.8 MB, free: 39.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007653/0.2692, allocations: 362.9 kB / 383.1 MB, free: 39.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004229/0.2696, allocations: 196 kB / 383.3 MB, free: 39.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.001e-05/0.2697, allocations: 3.969 kB / 383.3 MB, free: 39.42 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.2697, allocations: 37.31 kB / 383.4 MB, free: 39.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.485e-06/0.2697, allocations: 0 / 383.4 MB, free: 39.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004618/0.2743, allocations: 1.959 MB / 385.3 MB, free: 38.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.2744, allocations: 94.05 kB / 385.4 MB, free: 38.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.2747, allocations: 242.5 kB / 385.6 MB, free: 37.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.629e-05/0.2747, allocations: 37.7 kB / 385.7 MB, free: 37.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.566e-05/0.2748, allocations: 132.8 kB / 385.8 MB, free: 37.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.768e-05/0.2749, allocations: 153.8 kB / 386 MB, free: 37.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.447e-05/0.2749, allocations: 8 kB / 386 MB, free: 37.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.935e-05/0.275, allocations: 342.8 kB / 386.3 MB, free: 37.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.2753, allocations: 168.8 kB / 386.5 MB, free: 36.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.2756, allocations: 229.9 kB / 386.7 MB, free: 36.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005562/0.2762, allocations: 347.2 kB / 387 MB, free: 36.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2762, allocations: 8 kB / 387 MB, free: 36.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009118/0.2771, allocations: 0.5559 MB / 387.6 MB, free: 35.77 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.2772, allocations: 4.125 kB / 387.6 MB, free: 35.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.2772, allocations: 4 kB / 387.6 MB, free: 35.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006331/0.2778, allocations: 254.2 kB / 387.9 MB, free: 35.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.2781, allocations: 51.91 kB / 387.9 MB, free: 35.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002996/0.2811, allocations: 2.662 MB / 390.6 MB, free: 32.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.2813, allocations: 32.03 kB / 390.6 MB, free: 32.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.769e-05/0.2814, allocations: 16 kB / 390.6 MB, free: 32.62 MB / 298.7 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.2815, allocations: 153.8 kB / 390.8 MB, free: 32.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.819e-05/0.2816, allocations: 31.56 kB / 390.8 MB, free: 32.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.813e-05/0.2817, allocations: 46.92 kB / 390.8 MB, free: 32.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2817, allocations: 4 kB / 390.8 MB, free: 32.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2817, allocations: 7.938 kB / 390.9 MB, free: 32.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2817, allocations: 0 / 390.9 MB, free: 32.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.2832, allocations: 1.097 MB / 392 MB, free: 31.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2832, allocations: 4 kB / 392 MB, free: 31.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001958/0.2834, allocations: 43.91 kB / 392 MB, free: 31.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000542/0.284, allocations: 236.9 kB / 392.2 MB, free: 30.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.284, allocations: 11.98 kB / 392.2 MB, free: 30.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002684/0.2867, allocations: 2.601 MB / 394.8 MB, free: 28.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.2867, allocations: 0 / 394.8 MB, free: 28.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.288, allocations: 0.8219 MB / 395.7 MB, free: 27.35 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.2881, allocations: 140.8 kB / 395.8 MB, free: 27.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.952e-05/0.2882, allocations: 12.06 kB / 395.8 MB, free: 27.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.2884, allocations: 35.97 kB / 395.8 MB, free: 27.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.2886, allocations: 63.88 kB / 395.9 MB, free: 27.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.848e-05/0.2886, allocations: 19.98 kB / 395.9 MB, free: 27.06 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001724/0.2888, allocations: 180.3 kB / 396.1 MB, free: 26.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.153e-06/0.2888, allocations: 0 / 396.1 MB, free: 26.89 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005998/0.2894, allocations: 139.9 kB / 396.2 MB, free: 26.75 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002169/0.2896, allocations: 143.2 kB / 396.4 MB, free: 26.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.2907, allocations: 0.6331 MB / 397 MB, free: 25.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2907, allocations: 0 / 397 MB, free: 25.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005677/0.2913, allocations: 433.3 kB / 397.4 MB, free: 25.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003883/0.2917, allocations: 36.05 kB / 397.5 MB, free: 25.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.2928, allocations: 0.8566 MB / 398.3 MB, free: 24.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.2931, allocations: 0.7803 MB / 399.1 MB, free: 23.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.956e-05/0.2932, allocations: 27.42 kB / 399.1 MB, free: 23.76 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2932, allocations: 3.938 kB / 399.1 MB, free: 23.76 MB / 298.7 MB Notification: Performance of Templates: time 0.006295/0.2995, allocations: 5.184 MB / 404.3 MB, free: 18.58 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches