Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001093/0.001093, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8463/0.8463, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.411e-05/2.632e-05, allocations: 7.266 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002987/0.003014, allocations: 2.406 MB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.004377, allocations: 1.088 MB / 328 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.004494, allocations: 7.938 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002492/0.004743, allocations: 67.38 kB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000398/0.005141, allocations: 183.8 kB / 328.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003217/0.005463, allocations: 190.6 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007339/0.006197, allocations: 0.5256 MB / 329 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.006349, allocations: 64.91 kB / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000379/0.006728, allocations: 319.4 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002371/0.006965, allocations: 235.4 kB / 329.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.464e-05/0.007019, allocations: 47.94 kB / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001781/0.007198, allocations: 127.9 kB / 329.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.915e-05/0.007297, allocations: 115.7 kB / 329.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.758e-05/0.007394, allocations: 151.6 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004674/0.007862, allocations: 0.5842 MB / 330.6 MB, free: 9.797 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.007864, allocations: 4 kB / 330.6 MB, free: 9.793 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.007865, allocations: 0 / 330.6 MB, free: 9.793 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.007871, allocations: 0 / 330.6 MB, free: 9.793 MB / 298.7 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.0009702/0.008841, allocations: 0.6414 MB / 331.2 MB, free: 9.121 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.008888, allocations: 11.98 kB / 331.2 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.574e-05/0.008954, allocations: 66.73 kB / 331.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002374/0.009192, allocations: 68.66 kB / 331.4 MB, free: 8.969 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003661/0.009558, allocations: 269.2 kB / 331.6 MB, free: 8.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.00966, allocations: 144 kB / 331.8 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.556e-05/0.009705, allocations: 36.33 kB / 331.8 MB, free: 8.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005075/0.01021, allocations: 443.2 kB / 332.2 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.01023, allocations: 192 / 332.2 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.01026, allocations: 19.94 kB / 332.3 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.01026, allocations: 8 kB / 332.3 MB, free: 8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000565/0.01083, allocations: 462.2 kB / 332.7 MB, free: 7.551 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.0119, allocations: 0.8385 MB / 333.6 MB, free: 6.668 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005347/0.01244, allocations: 377.2 kB / 333.9 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002677/0.01271, allocations: 210.2 kB / 334.1 MB, free: 6.082 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.01273, allocations: 4.5 kB / 334.1 MB, free: 6.078 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.131e-05/0.01275, allocations: 43.06 kB / 334.2 MB, free: 6.027 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.393e-06/0.01276, allocations: 0 / 334.2 MB, free: 6.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.00319/0.01595, allocations: 1.926 MB / 336.1 MB, free: 4.051 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.01598, allocations: 85.59 kB / 336.2 MB, free: 3.949 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.01619, allocations: 277.8 kB / 336.5 MB, free: 3.664 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.01622, allocations: 37.7 kB / 336.5 MB, free: 3.621 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.822e-05/0.01629, allocations: 149 kB / 336.6 MB, free: 3.469 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.489e-05/0.01639, allocations: 190.3 kB / 336.8 MB, free: 3.281 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.793e-05/0.01648, allocations: 90.17 kB / 336.9 MB, free: 3.188 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.822e-05/0.01657, allocations: 342.8 kB / 337.3 MB, free: 2.844 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.01683, allocations: 188.9 kB / 337.4 MB, free: 2.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002866/0.01712, allocations: 269.7 kB / 337.7 MB, free: 2.383 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004775/0.01759, allocations: 383.6 kB / 338.1 MB, free: 2.004 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.0176, allocations: 0 / 338.1 MB, free: 2.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007312/0.01833, allocations: 0.5926 MB / 338.7 MB, free: 1.402 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.01834, allocations: 15.11 kB / 338.7 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.01835, allocations: 0 / 338.7 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004673/0.01881, allocations: 306.5 kB / 339 MB, free: 1.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.01897, allocations: 71.88 kB / 339.1 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/0.02136, allocations: 2.789 MB / 341.8 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.0215, allocations: 32 kB / 341.9 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.115e-05/0.02153, allocations: 24.05 kB / 341.9 MB, free: 14.07 MB / 314.7 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.000128/0.02166, allocations: 157.8 kB / 342.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.19e-05/0.02171, allocations: 39.75 kB / 342.1 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.362e-05/0.02177, allocations: 47.62 kB / 342.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.02177, allocations: 4 kB / 342.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.02177, allocations: 3.984 kB / 342.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.02177, allocations: 0 / 342.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.02332, allocations: 1.181 MB / 343.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.02332, allocations: 0 / 343.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.02348, allocations: 67.89 kB / 343.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003872/0.02387, allocations: 284.6 kB / 343.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/0.0239, allocations: 15.98 kB / 343.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/0.02607, allocations: 2.712 MB / 346.4 MB, free: 9.383 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.02607, allocations: 3.938 kB / 346.4 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.02714, allocations: 0.941 MB / 347.3 MB, free: 8.414 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.02725, allocations: 83.75 kB / 347.4 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.02729, allocations: 12.12 kB / 347.4 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.02742, allocations: 27.97 kB / 347.5 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.02755, allocations: 80.3 kB / 347.5 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.02757, allocations: 19.98 kB / 347.6 MB, free: 8.195 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001461/0.02772, allocations: 201.2 kB / 347.8 MB, free: 8 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02772, allocations: 0 / 347.8 MB, free: 8 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003854/0.02811, allocations: 155.9 kB / 347.9 MB, free: 7.848 MB / 314.7 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.001845/0.02995, allocations: 1.795 MB / 349.7 MB, free: 6.145 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.03103, allocations: 0.664 MB / 350.4 MB, free: 5.469 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.03104, allocations: 0 / 350.4 MB, free: 5.469 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004442/0.03148, allocations: 456.6 kB / 350.8 MB, free: 5.012 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.03177, allocations: 47.66 kB / 350.9 MB, free: 4.969 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003758/0.03553, allocations: 3.767 MB / 354.6 MB, free: 1.098 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001465/0.03567, allocations: 198.8 kB / 354.8 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.03583, allocations: 78.91 kB / 354.9 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.03597, allocations: 108.4 kB / 355 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.03597, allocations: 0 / 355 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.06069, allocations: 11.73 MB / 366.7 MB, free: 5.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.965/8.026, allocations: 64 / 366.7 MB, free: 5.02 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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: 9.650256701745093]