Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001477/0.001477, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 64.03 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3038, allocations: 50.55 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003862/0.3077, allocations: 2.446 MB / 412.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001891/0.3096, allocations: 1.057 MB / 413.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.3098, allocations: 7.938 kB / 413.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.3102, allocations: 63.5 kB / 413.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004323/0.3106, allocations: 150.4 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003995/0.311, allocations: 159.7 kB / 413.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004813/0.3115, allocations: 470.7 kB / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.3117, allocations: 72.69 kB / 414.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002403/0.3119, allocations: 203.5 kB / 414.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003375/0.3123, allocations: 239.2 kB / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.133e-05/0.3124, allocations: 40 kB / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002439/0.3126, allocations: 135.9 kB / 414.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.3128, allocations: 103.7 kB / 415 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.313, allocations: 179.2 kB / 415.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005677/0.3136, allocations: 495.6 kB / 415.7 MB, free: 11.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3136, allocations: 4 kB / 415.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3136, allocations: 0 / 415.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3136, allocations: 0 / 415.7 MB, free: 11.8 MB / 334.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.001224/0.3148, allocations: 0.6628 MB / 416.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.3149, allocations: 12.02 kB / 416.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000344/0.3152, allocations: 48.55 kB / 416.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005352/0.3158, allocations: 309.3 kB / 416.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/0.3159, allocations: 88.52 kB / 416.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.593e-05/0.316, allocations: 32.38 kB / 416.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008022/0.3168, allocations: 385.4 kB / 417.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.3169, allocations: 0 / 417.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.3169, allocations: 12 kB / 417.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.3169, allocations: 8 kB / 417.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008751/0.3178, allocations: 417.9 kB / 417.6 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/0.3199, allocations: 1.261 MB / 418.9 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007299/0.3207, allocations: 346.5 kB / 419.2 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003857/0.3211, allocations: 188.7 kB / 419.4 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.51e-05/0.3211, allocations: 4 kB / 419.4 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.3212, allocations: 43.28 kB / 419.5 MB, free: 7.812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.094e-06/0.3212, allocations: 0 / 419.5 MB, free: 7.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004979/0.3262, allocations: 1.909 MB / 421.4 MB, free: 5.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/0.3263, allocations: 84.86 kB / 421.5 MB, free: 5.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003215/0.3266, allocations: 239 kB / 421.7 MB, free: 5.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.507e-05/0.3266, allocations: 37.7 kB / 421.7 MB, free: 5.402 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.063e-05/0.3267, allocations: 136.8 kB / 421.9 MB, free: 5.266 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.3269, allocations: 149.9 kB / 422 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.327, allocations: 90.02 kB / 422.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3272, allocations: 338.8 kB / 422.4 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.3275, allocations: 168.8 kB / 422.6 MB, free: 4.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004436/0.328, allocations: 221.9 kB / 422.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007008/0.3287, allocations: 347.1 kB / 423.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3287, allocations: 0 / 423.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001162/0.3299, allocations: 0.5513 MB / 423.7 MB, free: 3.371 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.3299, allocations: 10.97 kB / 423.7 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3299, allocations: 0 / 423.7 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008341/0.3308, allocations: 304.5 kB / 424 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.331, allocations: 51.97 kB / 424.1 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004024/0.3351, allocations: 2.884 MB / 426.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.3354, allocations: 31.98 kB / 427 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.3354, allocations: 15.98 kB / 427 MB, free: 15.94 MB / 350.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.0002212/0.3357, allocations: 162.1 kB / 427.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.488e-05/0.3358, allocations: 23.72 kB / 427.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.413e-05/0.3359, allocations: 42.98 kB / 427.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3359, allocations: 4 kB / 427.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3359, allocations: 4 kB / 427.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.3359, allocations: 7.984 kB / 427.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.3378, allocations: 1.113 MB / 428.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.3378, allocations: 4 kB / 428.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002428/0.3381, allocations: 43.95 kB / 428.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007209/0.3388, allocations: 292.7 kB / 428.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.646e-05/0.3389, allocations: 19.98 kB / 428.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003745/0.3426, allocations: 2.835 MB / 431.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3427, allocations: 3.984 kB / 431.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.3443, allocations: 0.8198 MB / 432.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.3445, allocations: 144.8 kB / 432.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.766e-05/0.3445, allocations: 16.06 kB / 432.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.3448, allocations: 23.97 kB / 432.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/0.345, allocations: 63.91 kB / 432.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.345, allocations: 15.98 kB / 432.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002374/0.3453, allocations: 184.2 kB / 432.8 MB, free: 9.887 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3453, allocations: 0 / 432.8 MB, free: 9.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006783/0.346, allocations: 136 kB / 432.9 MB, free: 9.754 MB / 350.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.0009549/0.3469, allocations: 382.3 kB / 433.3 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.3485, allocations: 0.6213 MB / 433.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3485, allocations: 0 / 433.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007462/0.3493, allocations: 425.7 kB / 434.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004702/0.3498, allocations: 47.88 kB / 434.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.3513, allocations: 0.7247 MB / 435.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.3516, allocations: 0.78 MB / 435.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.3518, allocations: 43.41 kB / 435.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3518, allocations: 0 / 435.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of Templates: time 0.00939/0.3612, allocations: 5.93 MB / 441.9 MB, free: 0.8398 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches