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.001447/0.001447, allocations: 108.6 kB / 18.49 MB, free: 4.543 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.001453/0.001453, allocations: 197 kB / 21.43 MB, free: 1.609 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.41/1.41, allocations: 225.6 MB / 249.8 MB, free: 3.605 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 47.92 kB / 366.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.107, allocations: 52.15 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003786/0.1108, allocations: 2.453 MB / 420.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.1119, allocations: 0.4914 MB / 421.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.843e-05/0.112, allocations: 3.938 kB / 421.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.1122, allocations: 47.56 kB / 421.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.1123, allocations: 95.27 kB / 421.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004489/0.1128, allocations: 183.7 kB / 421.7 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005141/0.1133, allocations: 491.1 kB / 422.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.1134, allocations: 54.73 kB / 422.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002458/0.1137, allocations: 215.3 kB / 422.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000315/0.114, allocations: 243.2 kB / 422.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.14e-05/0.114, allocations: 40 kB / 422.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.1142, allocations: 91.92 kB / 422.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.1143, allocations: 95.72 kB / 422.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.1145, allocations: 191.1 kB / 423.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005518/0.1151, allocations: 466.2 kB / 423.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1151, allocations: 0 / 423.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1151, allocations: 3.938 kB / 423.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.1151, allocations: 0 / 423.6 MB, free: 7.477 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.001311/0.1164, allocations: 0.6662 MB / 424.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.1164, allocations: 12.03 kB / 424.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.858e-05/0.1165, allocations: 8.75 kB / 424.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.426e-05/0.1166, allocations: 70.72 kB / 424.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.82e-05/0.1166, allocations: 36.7 kB / 424.4 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004144/0.1171, allocations: 288.6 kB / 424.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.81e-05/0.1171, allocations: 20.94 kB / 424.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.577e-05/0.1172, allocations: 32.36 kB / 424.7 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007273/0.1179, allocations: 377 kB / 425.1 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.1179, allocations: 8 kB / 425.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.956e-05/0.118, allocations: 16 kB / 425.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.118, allocations: 8 kB / 425.1 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008076/0.1188, allocations: 402 kB / 425.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.1207, allocations: 1.108 MB / 426.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005345/0.1212, allocations: 280.3 kB / 426.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000371/0.1216, allocations: 185.8 kB / 427.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.904e-05/0.1217, allocations: 4 kB / 427.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.1217, allocations: 38.5 kB / 427.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.513e-06/0.1217, allocations: 8 kB / 427.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004771/0.1265, allocations: 2.029 MB / 429.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.1265, allocations: 55.41 kB / 429.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002562/0.1268, allocations: 237 kB / 429.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.522e-05/0.1268, allocations: 41.7 kB / 429.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1269, allocations: 153 kB / 429.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.1271, allocations: 170.6 kB / 429.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.1273, allocations: 94.19 kB / 429.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.1274, allocations: 342.8 kB / 430.2 MB, free: 476 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004087/0.1279, allocations: 209 kB / 430.4 MB, free: 268 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004857/0.1283, allocations: 284.9 kB / 430.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006717/0.129, allocations: 377.7 kB / 431.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.129, allocations: 4 kB / 431.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00148/0.1305, allocations: 0.6808 MB / 431.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.1305, allocations: 4.156 kB / 431.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1305, allocations: 8 kB / 431.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008785/0.1314, allocations: 493.4 kB / 432.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.1317, allocations: 75.84 kB / 432.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.1331, allocations: 1.39 MB / 433.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004194/0.1335, allocations: 72.03 kB / 433.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-05/0.1335, allocations: 16 kB / 433.8 MB, free: 12.77 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.0002109/0.1337, allocations: 170.8 kB / 434 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.863e-05/0.1338, allocations: 35.81 kB / 434 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.1339, allocations: 47.3 kB / 434 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.1339, allocations: 4 kB / 434.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.1339, allocations: 8.062 kB / 434.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1339, allocations: 0 / 434.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002846/0.1368, allocations: 1.33 MB / 435.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.1368, allocations: 7.938 kB / 435.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.1371, allocations: 59.91 kB / 435.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007679/0.1378, allocations: 465.5 kB / 435.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.344e-05/0.1379, allocations: 19.98 kB / 435.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.1392, allocations: 1.339 MB / 437.3 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.1392, allocations: 7.969 kB / 437.3 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/0.1411, allocations: 0.9404 MB / 438.2 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001855/0.1412, allocations: 152.8 kB / 438.4 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.442e-05/0.1413, allocations: 23.98 kB / 438.4 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/0.1416, allocations: 31.97 kB / 438.4 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.1418, allocations: 83.86 kB / 438.5 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.086e-05/0.1419, allocations: 23.97 kB / 438.5 MB, free: 7.836 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001689/0.142, allocations: 172.5 kB / 438.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.142, allocations: 0 / 438.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004536/0.1425, allocations: 103.9 kB / 438.8 MB, free: 7.566 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.002372/0.1449, allocations: 1.526 MB / 440.3 MB, free: 5.992 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.1459, allocations: 490.2 kB / 440.8 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1459, allocations: 0 / 440.8 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000631/0.1466, allocations: 280.3 kB / 441.1 MB, free: 5.242 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.147, allocations: 56.75 kB / 441.1 MB, free: 5.188 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007258/0.1543, allocations: 4.117 MB / 445.2 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004867/0.1548, allocations: 0.7761 MB / 446 MB, free: 104 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000131/0.1549, allocations: 34.97 kB / 446.1 MB, free: 68 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1949/0.3498, allocations: 87.64 kB / 446.1 MB, free: 30.35 MB / 366.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3498, allocations: 0 / 446.1 MB, free: 30.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04113/0.3909, allocations: 11.75 MB / 457.9 MB, free: 28.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.19, allocations: 19.91 kB / 457.9 MB, free: 28.22 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.65253554697847]