Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.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.001781/0.001781, allocations: 125 kB / 17.79 MB, free: 5.121 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.002487/0.002487, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.372/1.372, allocations: 225.6 MB / 249.1 MB, free: 3.582 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.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 51.92 kB / 365.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09709/0.0986, allocations: 52.13 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003687/0.1023, allocations: 2.457 MB / 420.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.1033, allocations: 0.4914 MB / 420.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.1034, allocations: 7.938 kB / 420.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.1036, allocations: 47.58 kB / 420.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.1038, allocations: 91.25 kB / 420.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005462/0.1044, allocations: 187.6 kB / 421 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005104/0.1049, allocations: 495.1 kB / 421.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.105, allocations: 51.06 kB / 421.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.1053, allocations: 211.4 kB / 421.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000307/0.1056, allocations: 239.2 kB / 422 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.016e-05/0.1057, allocations: 36 kB / 422 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.1058, allocations: 91.94 kB / 422.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.1059, allocations: 99.7 kB / 422.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001785/0.1061, allocations: 183.1 kB / 422.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005383/0.1067, allocations: 474.2 kB / 422.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1067, allocations: 0 / 422.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1067, allocations: 0 / 422.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.585e-06/0.1067, allocations: 4 kB / 422.9 MB, free: 7.457 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001239/0.1079, allocations: 0.6662 MB / 423.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.108, allocations: 12.02 kB / 423.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.385e-05/0.108, allocations: 58.73 kB / 423.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.264e-05/0.1081, allocations: 40.7 kB / 423.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004437/0.1086, allocations: 292.6 kB / 423.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.441e-05/0.1086, allocations: 20.94 kB / 424 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.008e-05/0.1087, allocations: 32.38 kB / 424 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006899/0.1093, allocations: 377.2 kB / 424.4 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.1094, allocations: 7.938 kB / 424.4 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.788e-05/0.1094, allocations: 15.94 kB / 424.4 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1094, allocations: 8 kB / 424.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000758/0.1102, allocations: 405.9 kB / 424.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.1121, allocations: 1.104 MB / 425.9 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005155/0.1126, allocations: 280.3 kB / 426.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000347/0.113, allocations: 185.8 kB / 426.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.113, allocations: 4 kB / 426.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.1131, allocations: 42.5 kB / 426.4 MB, free: 3.742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.623e-06/0.1131, allocations: 0 / 426.4 MB, free: 3.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004454/0.1175, allocations: 2.026 MB / 428.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.1176, allocations: 59.41 kB / 428.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.1178, allocations: 233 kB / 428.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.491e-05/0.1179, allocations: 41.69 kB / 428.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.118, allocations: 157 kB / 428.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.1181, allocations: 162.7 kB / 429.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.1183, allocations: 98.19 kB / 429.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1185, allocations: 342.8 kB / 429.5 MB, free: 476 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003894/0.1188, allocations: 209 kB / 429.7 MB, free: 268 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004587/0.1193, allocations: 292.8 kB / 430 MB, free: 15.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006584/0.12, allocations: 373.7 kB / 430.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.12, allocations: 4 kB / 430.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001425/0.1214, allocations: 0.6888 MB / 431 MB, free: 14.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1214, allocations: 8 kB / 431 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.1214, allocations: 7.984 kB / 431.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008714/0.1223, allocations: 493.4 kB / 431.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.1226, allocations: 67.91 kB / 431.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.1239, allocations: 1.394 MB / 433 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000403/0.1243, allocations: 71.84 kB / 433.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.1244, allocations: 16 kB / 433.1 MB, free: 12.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002323/0.1246, allocations: 174.8 kB / 433.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.699e-05/0.1247, allocations: 31.81 kB / 433.3 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.1248, allocations: 43.31 kB / 433.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.1248, allocations: 4 kB / 433.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1248, allocations: 0 / 433.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.1248, allocations: 3.984 kB / 433.3 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.1275, allocations: 1.338 MB / 434.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.1275, allocations: 4 kB / 434.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.1278, allocations: 59.84 kB / 434.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000784/0.1286, allocations: 465.5 kB / 435.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.573e-05/0.1286, allocations: 27.91 kB / 435.2 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001294/0.1299, allocations: 1.335 MB / 436.5 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1299, allocations: 4.031 kB / 436.6 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001817/0.1317, allocations: 0.9406 MB / 437.5 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002144/0.1319, allocations: 152.9 kB / 437.6 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.815e-05/0.132, allocations: 23.94 kB / 437.7 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002743/0.1323, allocations: 39.95 kB / 437.7 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/0.1325, allocations: 79.95 kB / 437.8 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.069e-05/0.1325, allocations: 23.97 kB / 437.8 MB, free: 7.824 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001644/0.1327, allocations: 172.5 kB / 438 MB, free: 7.656 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1327, allocations: 0 / 438 MB, free: 7.656 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004359/0.1331, allocations: 103.9 kB / 438.1 MB, free: 7.555 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002276/0.1354, allocations: 1.533 MB / 439.6 MB, free: 5.977 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.1365, allocations: 486.2 kB / 440.1 MB, free: 5.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1365, allocations: 4 kB / 440.1 MB, free: 5.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000571/0.1371, allocations: 280.4 kB / 440.4 MB, free: 5.227 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/0.1375, allocations: 48.41 kB / 440.4 MB, free: 5.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007029/0.1446, allocations: 4.113 MB / 444.5 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.145, allocations: 0.78 MB / 445.3 MB, free: 96 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001489/0.1452, allocations: 30.97 kB / 445.3 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1772/0.3224, allocations: 87.02 kB / 445.4 MB, free: 30.78 MB / 366.1 MB Notification: Performance of SimCode: time 2.425e-06/0.3224, allocations: 0.5 kB / 445.4 MB, free: 30.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04168/0.3641, allocations: 11.73 MB / 457.1 MB, free: 28.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.37, allocations: 5.875 kB / 457.2 MB, free: 28.65 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.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.106942432932556]