Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 225.6 MB / 249.1 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 51.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09115/0.09264, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00406/0.0967, allocations: 2.447 MB / 420.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.0988, allocations: 0.9753 MB / 421.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002093/0.09901, allocations: 4 kB / 421.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002526/0.09926, allocations: 55.5 kB / 421.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006204/0.09988, allocations: 159.1 kB / 421.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000439/0.1003, allocations: 179.6 kB / 421.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005732/0.1009, allocations: 474.5 kB / 422 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.1011, allocations: 61.66 kB / 422.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.1014, allocations: 215.3 kB / 422.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003571/0.1018, allocations: 255.2 kB / 422.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.515e-05/0.1018, allocations: 40 kB / 422.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002525/0.1021, allocations: 127.8 kB / 422.7 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001494/0.1022, allocations: 103.7 kB / 422.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001938/0.1024, allocations: 187.1 kB / 423 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006512/0.1031, allocations: 0.4904 MB / 423.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.1031, allocations: 4 kB / 423.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1031, allocations: 0 / 423.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1031, allocations: 0 / 423.5 MB, free: 6.859 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001345/0.1044, allocations: 0.6778 MB / 424.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1045, allocations: 8.031 kB / 424.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.697e-05/0.1046, allocations: 74.72 kB / 424.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003083/0.1049, allocations: 56.62 kB / 424.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005741/0.1055, allocations: 319.7 kB / 424.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.1056, allocations: 92.55 kB / 424.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.773e-05/0.1057, allocations: 32.31 kB / 424.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008041/0.1065, allocations: 416.9 kB / 425.2 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.1065, allocations: 7.953 kB / 425.2 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.1065, allocations: 12 kB / 425.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1065, allocations: 11.94 kB / 425.2 MB, free: 5.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009973/0.1075, allocations: 474.2 kB / 425.6 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/0.1094, allocations: 0.966 MB / 426.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008287/0.1102, allocations: 380.5 kB / 427 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004558/0.1106, allocations: 214.1 kB / 427.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.928e-05/0.1107, allocations: 8.422 kB / 427.2 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.1107, allocations: 39 kB / 427.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.384e-06/0.1107, allocations: 0 / 427.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005376/0.1161, allocations: 2.156 MB / 429.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.379e-05/0.1162, allocations: 85.67 kB / 429.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003482/0.1165, allocations: 259.1 kB / 429.7 MB, free: 296 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.558e-05/0.1166, allocations: 41.69 kB / 429.8 MB, free: 248 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.1167, allocations: 141.2 kB / 429.9 MB, free: 104 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.1169, allocations: 190.3 kB / 430.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.117, allocations: 90.23 kB / 430.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1172, allocations: 342.8 kB / 430.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004499/0.1177, allocations: 197 kB / 430.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004886/0.1181, allocations: 248.6 kB / 431 MB, free: 15.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008369/0.119, allocations: 384.4 kB / 431.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.119, allocations: 0 / 431.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001319/0.1203, allocations: 0.6096 MB / 431.9 MB, free: 14.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.1203, allocations: 15.97 kB / 432 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1203, allocations: 0 / 432 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007692/0.1211, allocations: 258.6 kB / 432.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000324/0.1214, allocations: 67.88 kB / 432.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004287/0.1257, allocations: 2.939 MB / 435.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003582/0.1261, allocations: 32 kB / 435.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.132e-05/0.1261, allocations: 24.06 kB / 435.3 MB, free: 10.56 MB / 366.1 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.0002309/0.1264, allocations: 158.4 kB / 435.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.747e-05/0.1264, allocations: 31.81 kB / 435.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.1265, allocations: 51.3 kB / 435.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.1266, allocations: 4 kB / 435.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.1266, allocations: 0 / 435.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1266, allocations: 0 / 435.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002368/0.1289, allocations: 1.258 MB / 436.8 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.1289, allocations: 0 / 436.8 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/0.1293, allocations: 71.88 kB / 436.8 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006969/0.13, allocations: 248.6 kB / 437.1 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.581e-05/0.13, allocations: 12 kB / 437.1 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00419/0.1342, allocations: 2.84 MB / 439.9 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1342, allocations: 0 / 439.9 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.1361, allocations: 0.9624 MB / 440.9 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002317/0.1364, allocations: 144.8 kB / 441 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.526e-05/0.1364, allocations: 15.94 kB / 441 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003057/0.1367, allocations: 31.97 kB / 441.1 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.1369, allocations: 64.34 kB / 441.1 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.201e-05/0.137, allocations: 15.98 kB / 441.2 MB, free: 4.426 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002518/0.1372, allocations: 200.7 kB / 441.4 MB, free: 4.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1372, allocations: 4 kB / 441.4 MB, free: 4.227 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006301/0.1379, allocations: 151.9 kB / 441.5 MB, free: 4.078 MB / 366.1 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.002457/0.1403, allocations: 1.549 MB / 443.1 MB, free: 2.484 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.1418, allocations: 0.6838 MB / 443.7 MB, free: 1.789 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1418, allocations: 0 / 443.7 MB, free: 1.789 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008856/0.1427, allocations: 447.7 kB / 444.2 MB, free: 1.336 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004671/0.1432, allocations: 46.73 kB / 444.2 MB, free: 1.293 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1729/0.316, allocations: 3.817 MB / 448 MB, free: 29.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.3163, allocations: 0.7946 MB / 448.8 MB, free: 28.58 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002161/0.3165, allocations: 61.14 kB / 448.9 MB, free: 28.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.3166, allocations: 104.1 kB / 449 MB, free: 28.57 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3166, allocations: 0 / 449 MB, free: 28.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04255/0.3592, allocations: 11.04 MB / 460 MB, free: 26.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.52, allocations: 5.562 kB / 460 MB, free: 26.74 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 15.075810812879354]