Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_3.2.3_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.001681/0.001681, allocations: 109.4 kB / 18.4 MB, free: 4.703 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.001957/0.001957, allocations: 193.2 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 51.94 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.09314, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00391/0.0971, allocations: 2.425 MB / 378.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.09911, allocations: 1.011 MB / 379.2 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003065/0.09945, allocations: 4 kB / 379.2 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.09977, allocations: 47.52 kB / 379.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006995/0.1005, allocations: 163.1 kB / 379.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004379/0.1009, allocations: 179.7 kB / 379.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005951/0.1015, allocations: 470.5 kB / 380.1 MB, free: 300 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002274/0.1018, allocations: 96.89 kB / 380.2 MB, free: 200 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1883/0.29, allocations: 203.2 kB / 380.4 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005646/0.2907, allocations: 241.3 kB / 380.6 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001679/0.2908, allocations: 37.12 kB / 380.6 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004028/0.2913, allocations: 130.6 kB / 380.8 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.2915, allocations: 107.6 kB / 380.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002988/0.2918, allocations: 183.2 kB / 381.1 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008859/0.2927, allocations: 0.494 MB / 381.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2927, allocations: 2.156 kB / 381.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2927, allocations: 1.094 kB / 381.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.2927, allocations: 0 / 381.6 MB, free: 9.777 MB / 318.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.001681/0.2944, allocations: 0.6653 MB / 382.2 MB, free: 9.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.2945, allocations: 10.88 kB / 382.2 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003856/0.2949, allocations: 54.02 kB / 382.3 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005625/0.2954, allocations: 325 kB / 382.6 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.2956, allocations: 91.02 kB / 382.7 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.262e-05/0.2956, allocations: 33.27 kB / 382.7 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000995/0.2967, allocations: 419.4 kB / 383.1 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.2967, allocations: 8.531 kB / 383.1 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.097e-05/0.2967, allocations: 10.31 kB / 383.2 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.2968, allocations: 7.531 kB / 383.2 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.2979, allocations: 471.7 kB / 383.6 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.2998, allocations: 0.9693 MB / 384.6 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008737/0.3007, allocations: 409.9 kB / 385 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004898/0.3012, allocations: 236 kB / 385.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.043e-05/0.3013, allocations: 6.391 kB / 385.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.3013, allocations: 37.97 kB / 385.3 MB, free: 8.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.594e-06/0.3013, allocations: 0.625 kB / 385.3 MB, free: 8.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005427/0.3068, allocations: 2.167 MB / 387.4 MB, free: 7.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.3068, allocations: 87.17 kB / 387.5 MB, free: 7.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.3072, allocations: 262.1 kB / 387.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.069e-05/0.3073, allocations: 37.39 kB / 387.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.855e-05/0.3074, allocations: 134.3 kB / 387.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.3075, allocations: 187.1 kB / 388.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.3077, allocations: 90.03 kB / 388.2 MB, free: 6.914 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.821e-05/0.3078, allocations: 339.1 kB / 388.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004772/0.3083, allocations: 197.4 kB / 388.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005108/0.3088, allocations: 245.9 kB / 389 MB, free: 6.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008798/0.3097, allocations: 391.6 kB / 389.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.3097, allocations: 1.469 kB / 389.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001373/0.3111, allocations: 0.6121 MB / 390 MB, free: 6.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.3111, allocations: 5.812 kB / 390 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.3112, allocations: 5.125 kB / 390 MB, free: 6.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007987/0.312, allocations: 267.5 kB / 390.2 MB, free: 5.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003275/0.3123, allocations: 65.56 kB / 390.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003887/0.3162, allocations: 2.929 MB / 393.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003549/0.3166, allocations: 28.97 kB / 393.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.969e-05/0.3166, allocations: 18.2 kB / 393.3 MB, free: 3.73 MB / 318.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.0002222/0.3169, allocations: 155 kB / 393.4 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.317, allocations: 42.33 kB / 393.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.3171, allocations: 48.91 kB / 393.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3171, allocations: 4.906 kB / 393.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3171, allocations: 4.062 kB / 393.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.3171, allocations: 4.484 kB / 393.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00227/0.3194, allocations: 1.262 MB / 394.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3194, allocations: 1.844 kB / 394.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003354/0.3198, allocations: 66.88 kB / 394.9 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007055/0.3205, allocations: 241.5 kB / 395.1 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.838e-05/0.3205, allocations: 16.16 kB / 395.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003507/0.3241, allocations: 2.85 MB / 398 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3241, allocations: 0.8438 kB / 398 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001876/0.326, allocations: 0.9571 MB / 398.9 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.3262, allocations: 153.6 kB / 399.1 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.435e-05/0.3262, allocations: 13.02 kB / 399.1 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003347/0.3266, allocations: 29.38 kB / 399.1 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.3268, allocations: 70.2 kB / 399.2 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-05/0.3269, allocations: 21.23 kB / 399.2 MB, free: 8 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003085/0.3272, allocations: 198.7 kB / 399.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3272, allocations: 1.375 kB / 399.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007429/0.328, allocations: 154.5 kB / 399.6 MB, free: 15.89 MB / 334.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.0002782/0.3282, allocations: 137.8 kB / 399.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.3299, allocations: 0.703 MB / 400.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3299, allocations: 1.062 kB / 400.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009174/0.3308, allocations: 486.5 kB / 400.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004766/0.3313, allocations: 42.73 kB / 400.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.333, allocations: 0.8229 MB / 401.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.3335, allocations: 0.7976 MB / 402.5 MB, free: 14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.3337, allocations: 37.66 kB / 402.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3337, allocations: 0 / 402.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of Templates: time 0.01148/0.3452, allocations: 5.991 MB / 408.6 MB, free: 11.67 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches