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.000992/0.000992, allocations: 95.8 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001047/0.001047, allocations: 205.2 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.7 MB / 247.5 MB, free: 9.684 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002731/0.0002731, allocations: 4.281 kB / 308.4 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1042, allocations: 51.54 MB / 359.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003096/0.1074, allocations: 2.128 MB / 362 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001874/0.1093, allocations: 1.038 MB / 363.1 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002479/0.1096, allocations: 7.938 kB / 363.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003315/0.1099, allocations: 51.69 kB / 363.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005132/0.1104, allocations: 130.9 kB / 363.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004275/0.1109, allocations: 139.8 kB / 363.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005396/0.1114, allocations: 446.6 kB / 363.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.1116, allocations: 68.69 kB / 363.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003109/0.1119, allocations: 175.4 kB / 364.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003791/0.1123, allocations: 231.2 kB / 364.3 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.216e-05/0.1124, allocations: 20 kB / 364.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002868/0.1127, allocations: 99.91 kB / 364.4 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.1128, allocations: 95.69 kB / 364.5 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002188/0.1131, allocations: 184.9 kB / 364.7 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004859/0.1136, allocations: 363.3 kB / 365 MB, free: 7.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.1136, allocations: 0 / 365 MB, free: 7.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1136, allocations: 0 / 365 MB, free: 7.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.1136, allocations: 0 / 365 MB, free: 7.926 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00122/0.1148, allocations: 0.5967 MB / 365.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.1149, allocations: 8.031 kB / 365.6 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003417/0.1152, allocations: 52.53 kB / 365.7 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004387/0.1157, allocations: 301.3 kB / 366 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/0.1158, allocations: 92.52 kB / 366.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.878e-05/0.1159, allocations: 24.38 kB / 366.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007705/0.1167, allocations: 393.3 kB / 366.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.1167, allocations: 11.91 kB / 366.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.998e-05/0.1168, allocations: 8 kB / 366.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.1168, allocations: 11.98 kB / 366.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008732/0.1177, allocations: 429.9 kB / 366.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.1198, allocations: 1.273 MB / 368.2 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007089/0.1206, allocations: 350.5 kB / 368.6 MB, free: 4.207 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004342/0.121, allocations: 192.8 kB / 368.7 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.1211, allocations: 4 kB / 368.8 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.1211, allocations: 34.56 kB / 368.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.435e-06/0.1211, allocations: 0 / 368.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005046/0.1262, allocations: 1.957 MB / 370.7 MB, free: 1.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.1263, allocations: 88.86 kB / 370.8 MB, free: 1.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/0.1266, allocations: 242.2 kB / 371.1 MB, free: 1.543 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.1267, allocations: 37.69 kB / 371.1 MB, free: 1.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.872e-05/0.1268, allocations: 140.6 kB / 371.2 MB, free: 1.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.1269, allocations: 157.7 kB / 371.4 MB, free: 1.203 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.139e-05/0.127, allocations: 45.7 kB / 371.4 MB, free: 1.152 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1272, allocations: 330.8 kB / 371.8 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003809/0.1276, allocations: 172.8 kB / 371.9 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004307/0.128, allocations: 229.9 kB / 372.2 MB, free: 420 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007039/0.1287, allocations: 343.2 kB / 372.5 MB, free: 64 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1287, allocations: 0 / 372.5 MB, free: 64 kB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.1857/0.3144, allocations: 0.5528 MB / 373 MB, free: 19.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.3145, allocations: 4.781 kB / 373 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.3145, allocations: 7.703 kB / 373.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.3155, allocations: 293 kB / 373.3 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.3158, allocations: 58.44 kB / 373.4 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003983/0.3198, allocations: 2.673 MB / 376.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.3202, allocations: 34.28 kB / 376.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-05/0.3203, allocations: 19.73 kB / 376.1 MB, free: 18.11 MB / 302.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.0002107/0.3205, allocations: 159.1 kB / 376.3 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.056e-05/0.3206, allocations: 28.45 kB / 376.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.3207, allocations: 43.36 kB / 376.3 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.3207, allocations: 4.594 kB / 376.4 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3207, allocations: 0.875 kB / 376.4 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.3208, allocations: 6.203 kB / 376.4 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.3229, allocations: 1.118 MB / 377.5 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.3229, allocations: 4.297 kB / 377.5 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/0.3232, allocations: 45.81 kB / 377.5 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007722/0.3239, allocations: 281.3 kB / 377.8 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.51e-05/0.324, allocations: 21.2 kB / 377.8 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00334/0.3273, allocations: 2.613 MB / 380.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3274, allocations: 1.25 kB / 380.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.329, allocations: 0.8255 MB / 381.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.3292, allocations: 157.5 kB / 381.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.784e-05/0.3292, allocations: 11.98 kB / 381.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002916/0.3295, allocations: 27.39 kB / 381.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.3297, allocations: 72.7 kB / 381.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.911e-05/0.3298, allocations: 17.08 kB / 381.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002356/0.33, allocations: 183 kB / 381.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.33, allocations: 1.25 kB / 381.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007178/0.3308, allocations: 133.6 kB / 381.9 MB, free: 14.59 MB / 302.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.0009092/0.3317, allocations: 382.9 kB / 382.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.3332, allocations: 0.6274 MB / 382.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.3332, allocations: 0 / 382.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008142/0.334, allocations: 437.5 kB / 383.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000508/0.3345, allocations: 34.39 kB / 383.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.3361, allocations: 0.902 MB / 384.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.3364, allocations: 0.7793 MB / 385 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.3366, allocations: 41.77 kB / 385 MB, free: 12.54 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3366, allocations: 0 / 385 MB, free: 12.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01209/0.3487, allocations: 5.852 MB / 390.9 MB, free: 10.87 MB / 302.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