Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001793/0.001793, allocations: 169.2 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.453/1.453, allocations: 177.2 MB / 204.9 MB, free: 9.07 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 51.05 kB / 325.6 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08983/0.0914, allocations: 53.34 MB / 378.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003883/0.09528, allocations: 2.329 MB / 381.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.09705, allocations: 1.01 MB / 382.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.09715, allocations: 4 kB / 382.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002554/0.09741, allocations: 59.48 kB / 382.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003988/0.0978, allocations: 156.1 kB / 382.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003882/0.09819, allocations: 171.7 kB / 382.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005153/0.09871, allocations: 466.7 kB / 383.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.09884, allocations: 48.83 kB / 383.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000244/0.09909, allocations: 211.4 kB / 383.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003334/0.09942, allocations: 227.2 kB / 383.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.327e-05/0.09949, allocations: 36 kB / 383.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002322/0.09973, allocations: 124 kB / 383.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.09987, allocations: 115.6 kB / 383.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.1, allocations: 151.4 kB / 384 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005914/0.1006, allocations: 0.4943 MB / 384.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1006, allocations: 0 / 384.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1006, allocations: 0 / 384.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1007, allocations: 0 / 384.5 MB, free: 10.28 MB / 350.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.001208/0.1019, allocations: 0.5984 MB / 385.1 MB, free: 9.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.1019, allocations: 15.97 kB / 385.1 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003153/0.1022, allocations: 44.73 kB / 385.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004903/0.1027, allocations: 243.6 kB / 385.4 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.1029, allocations: 148 kB / 385.5 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.659e-05/0.1029, allocations: 24.38 kB / 385.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007772/0.1037, allocations: 416.5 kB / 385.9 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.1037, allocations: 7.938 kB / 385.9 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/0.1038, allocations: 16 kB / 386 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.1038, allocations: 8 kB / 386 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009157/0.1047, allocations: 410.2 kB / 386.4 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.1068, allocations: 1.076 MB / 387.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007277/0.1076, allocations: 329.8 kB / 387.8 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004007/0.108, allocations: 169.5 kB / 387.9 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.108, allocations: 8 kB / 387.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.108, allocations: 38.52 kB / 388 MB, free: 6.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.593e-06/0.108, allocations: 0 / 388 MB, free: 6.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.00501/0.113, allocations: 1.656 MB / 389.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.1131, allocations: 88.84 kB / 389.7 MB, free: 4.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003474/0.1135, allocations: 259.2 kB / 390 MB, free: 4.516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.1135, allocations: 33.7 kB / 390 MB, free: 4.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.1136, allocations: 132.9 kB / 390.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.1138, allocations: 162.8 kB / 390.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.1139, allocations: 90.12 kB / 390.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1141, allocations: 338.8 kB / 390.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004037/0.1145, allocations: 160.9 kB / 390.9 MB, free: 3.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004775/0.115, allocations: 256.2 kB / 391.1 MB, free: 3.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007749/0.1157, allocations: 336.2 kB / 391.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1157, allocations: 4.031 kB / 391.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001244/0.117, allocations: 0.5371 MB / 392 MB, free: 2.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.117, allocations: 8 kB / 392 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.117, allocations: 3.938 kB / 392 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008661/0.1179, allocations: 305.3 kB / 392.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002599/0.1181, allocations: 59.89 kB / 392.4 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004134/0.1223, allocations: 2.713 MB / 395.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002749/0.1225, allocations: 27.97 kB / 395.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.102e-05/0.1226, allocations: 20 kB / 395.1 MB, free: 15.19 MB / 366.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.0001944/0.1228, allocations: 157.8 kB / 395.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.5e-05/0.1229, allocations: 27.81 kB / 395.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.123, allocations: 42.98 kB / 395.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.123, allocations: 7.984 kB / 395.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.123, allocations: 7.938 kB / 395.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.123, allocations: 0 / 395.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.1249, allocations: 0.9763 MB / 396.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1249, allocations: 7.984 kB / 396.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.1252, allocations: 47.91 kB / 396.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007797/0.126, allocations: 281 kB / 396.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.45e-05/0.126, allocations: 11.98 kB / 396.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003933/0.1299, allocations: 2.662 MB / 399.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1299, allocations: 0 / 399.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.1316, allocations: 0.8003 MB / 400.1 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.1317, allocations: 67.81 kB / 400.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.597e-05/0.1318, allocations: 15.98 kB / 400.2 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.1321, allocations: 19.98 kB / 400.2 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.1322, allocations: 67.86 kB / 400.3 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.092e-05/0.1323, allocations: 23.92 kB / 400.3 MB, free: 9.805 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002387/0.1325, allocations: 180.5 kB / 400.5 MB, free: 9.629 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1325, allocations: 4.062 kB / 400.5 MB, free: 9.625 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000609/0.1331, allocations: 139.9 kB / 400.6 MB, free: 9.488 MB / 366.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.001454/0.1346, allocations: 403 kB / 401 MB, free: 9.242 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.1359, allocations: 0.5949 MB / 401.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1359, allocations: 0 / 401.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007597/0.1366, allocations: 425.8 kB / 402 MB, free: 8.203 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004203/0.1371, allocations: 47.55 kB / 402.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.1384, allocations: 0.7141 MB / 402.8 MB, free: 7.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000188/0.1386, allocations: 175.7 kB / 403 MB, free: 7.219 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002165/0.1388, allocations: 74.92 kB / 403 MB, free: 7.148 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.139, allocations: 40.47 kB / 403.1 MB, free: 7.109 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.139, allocations: 0 / 403.1 MB, free: 7.109 MB / 366.1 MB Notification: Performance of Templates: time 0.01326/0.1522, allocations: 6.979 MB / 410.1 MB, free: 180 kB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.42627066001296]