Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_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_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 109.4 kB / 18.4 MB, free: 4.652 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.001418/0.001418, allocations: 189.1 kB / 19.33 MB, free: 3.73 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.415/1.415, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001386/0.001386, allocations: 51.94 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/0.09508, allocations: 46.62 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004205/0.09933, allocations: 2.339 MB / 378.1 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.1011, allocations: 0.9682 MB / 379.1 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.1013, allocations: 4 kB / 379.1 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002347/0.1016, allocations: 47.56 kB / 379.2 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004791/0.1021, allocations: 139.2 kB / 379.3 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003347/0.1024, allocations: 167.7 kB / 379.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004601/0.1029, allocations: 422.7 kB / 379.9 MB, free: 500 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.1031, allocations: 72.69 kB / 379.9 MB, free: 424 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.1033, allocations: 175.5 kB / 380.1 MB, free: 248 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002811/0.1036, allocations: 223.3 kB / 380.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1805/0.2841, allocations: 29.48 kB / 380.4 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003766/0.2845, allocations: 120.6 kB / 380.5 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.2846, allocations: 91.53 kB / 380.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.2848, allocations: 165.1 kB / 380.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005538/0.2854, allocations: 452.4 kB / 381.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2854, allocations: 4.156 kB / 381.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2854, allocations: 0 / 381.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.2854, allocations: 1.375 kB / 381.2 MB, free: 10.1 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001073/0.2865, allocations: 0.6316 MB / 381.8 MB, free: 9.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2865, allocations: 9.625 kB / 381.8 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003165/0.2869, allocations: 49.88 kB / 381.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004083/0.2873, allocations: 303.2 kB / 382.2 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.2874, allocations: 87.67 kB / 382.2 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.2875, allocations: 30.08 kB / 382.3 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.2881, allocations: 380.9 kB / 382.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.2882, allocations: 5.281 kB / 382.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.795e-05/0.2882, allocations: 14.62 kB / 382.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.2882, allocations: 6.156 kB / 382.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009476/0.2892, allocations: 424.2 kB / 383.1 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.2911, allocations: 1.233 MB / 384.3 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006403/0.2918, allocations: 354 kB / 384.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003524/0.2921, allocations: 186 kB / 384.9 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.2922, allocations: 9.797 kB / 384.9 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.2922, allocations: 36.06 kB / 384.9 MB, free: 8.676 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.793e-06/0.2922, allocations: 0 / 384.9 MB, free: 8.676 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004478/0.2967, allocations: 1.92 MB / 386.8 MB, free: 7.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.2968, allocations: 90.17 kB / 386.9 MB, free: 7.738 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002754/0.297, allocations: 240.5 kB / 387.1 MB, free: 7.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.2971, allocations: 37.86 kB / 387.2 MB, free: 7.559 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.541e-05/0.2972, allocations: 134.9 kB / 387.3 MB, free: 7.441 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.295e-05/0.2973, allocations: 150.5 kB / 387.5 MB, free: 7.328 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.2974, allocations: 89.08 kB / 387.5 MB, free: 7.277 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.241e-05/0.2975, allocations: 336.7 kB / 387.9 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.2978, allocations: 166 kB / 388 MB, free: 6.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003844/0.2982, allocations: 232.8 kB / 388.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006512/0.2989, allocations: 347.3 kB / 388.6 MB, free: 6.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2989, allocations: 1.125 kB / 388.6 MB, free: 6.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001071/0.3, allocations: 0.5595 MB / 389.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3, allocations: 5.438 kB / 389.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.3, allocations: 1.062 kB / 389.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007135/0.3007, allocations: 249.6 kB / 389.4 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.301, allocations: 54.42 kB / 389.5 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003427/0.3044, allocations: 2.891 MB / 392.4 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.3047, allocations: 22.45 kB / 392.4 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.3048, allocations: 22.31 kB / 392.4 MB, free: 4.145 MB / 318.1 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.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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.3049, allocations: 158.2 kB / 392.6 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.382e-05/0.305, allocations: 24.66 kB / 392.6 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.565e-05/0.3051, allocations: 41.3 kB / 392.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3051, allocations: 9.109 kB / 392.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3051, allocations: 4.062 kB / 392.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3052, allocations: 7.219 kB / 392.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/0.3069, allocations: 1.083 MB / 393.7 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.3069, allocations: 0 / 393.7 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000216/0.3071, allocations: 44.3 kB / 393.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000634/0.3078, allocations: 246.1 kB / 394 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.3078, allocations: 9.828 kB / 394 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003119/0.3109, allocations: 2.836 MB / 396.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3109, allocations: 0 / 396.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.3124, allocations: 0.8221 MB / 397.7 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.3125, allocations: 140.4 kB / 397.8 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.622e-05/0.3126, allocations: 22.77 kB / 397.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.3128, allocations: 22.17 kB / 397.9 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.313, allocations: 59.5 kB / 397.9 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.412e-05/0.3131, allocations: 16.38 kB / 397.9 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001856/0.3132, allocations: 184.4 kB / 398.1 MB, free: 484 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3133, allocations: 0 / 398.1 MB, free: 484 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006315/0.3139, allocations: 138.3 kB / 398.2 MB, free: 464 kB / 318.1 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 (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.0001893/0.3141, allocations: 136.6 kB / 398.4 MB, free: 360 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.3153, allocations: 0.6268 MB / 399 MB, free: 56 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3153, allocations: 2.031 kB / 399 MB, free: 56 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007411/0.3161, allocations: 431.6 kB / 399.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.3165, allocations: 32.84 kB / 399.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.3178, allocations: 0.736 MB / 400.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.3182, allocations: 0.7778 MB / 401 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.3183, allocations: 33.66 kB / 401 MB, free: 14.64 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3184, allocations: 0 / 401 MB, free: 14.64 MB / 334.1 MB Notification: Performance of Templates: time 0.00845/0.3268, allocations: 5.248 MB / 406.3 MB, free: 13 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches