Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 102.9 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 191.9 kB / 18.51 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 47.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1121, allocations: 46.62 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004499/0.1167, allocations: 2.42 MB / 329.8 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.118, allocations: 0.4998 MB / 330.3 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.1182, allocations: 0 / 330.3 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002371/0.1185, allocations: 55.5 kB / 330.3 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003517/0.1189, allocations: 83.27 kB / 330.4 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006199/0.1195, allocations: 195.6 kB / 330.6 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006019/0.1201, allocations: 495.1 kB / 331.1 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.1203, allocations: 72.94 kB / 331.2 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003493/0.1207, allocations: 207.4 kB / 331.4 MB, free: 364 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004024/0.1211, allocations: 239.2 kB / 331.6 MB, free: 124 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.1213, allocations: 40 kB / 331.7 MB, free: 84 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.1215, allocations: 87.94 kB / 331.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.1217, allocations: 95.67 kB / 331.8 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002223/0.1219, allocations: 183.1 kB / 332 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005361/0.1224, allocations: 458.5 kB / 332.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1225, allocations: 0 / 332.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1225, allocations: 0 / 332.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.004e-05/0.1225, allocations: 0 / 332.5 MB, free: 15.27 MB / 286.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.001483/0.124, allocations: 0.6588 MB / 333.1 MB, free: 14.56 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.124, allocations: 16.03 kB / 333.1 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.703e-05/0.1241, allocations: 62.73 kB / 333.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.1242, allocations: 36.47 kB / 333.2 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.1246, allocations: 284.6 kB / 333.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.269e-05/0.1247, allocations: 20.94 kB / 333.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.111e-05/0.1248, allocations: 32.28 kB / 333.6 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000774/0.1255, allocations: 373.2 kB / 333.9 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.821e-05/0.1256, allocations: 11.92 kB / 333.9 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.404e-05/0.1256, allocations: 12 kB / 333.9 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.1256, allocations: 11.94 kB / 334 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008586/0.1265, allocations: 398 kB / 334.3 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002321/0.1288, allocations: 1.104 MB / 335.5 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005352/0.1294, allocations: 299.5 kB / 335.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000359/0.1298, allocations: 201.4 kB / 335.9 MB, free: 11.6 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.382e-05/0.1298, allocations: 15.92 kB / 336 MB, free: 11.58 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.1299, allocations: 34.56 kB / 336 MB, free: 11.54 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.174e-06/0.1299, allocations: 0 / 336 MB, free: 11.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.005004/0.1349, allocations: 2.037 MB / 338 MB, free: 9.367 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.135, allocations: 55.41 kB / 338.1 MB, free: 9.301 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.1352, allocations: 233 kB / 338.3 MB, free: 9.062 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.915e-05/0.1353, allocations: 37.7 kB / 338.3 MB, free: 9.02 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.1354, allocations: 156.7 kB / 338.5 MB, free: 8.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.1355, allocations: 146 kB / 338.6 MB, free: 8.715 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.1357, allocations: 102.1 kB / 338.7 MB, free: 8.609 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.1359, allocations: 342.8 kB / 339.1 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000435/0.1364, allocations: 209 kB / 339.3 MB, free: 8.062 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004734/0.1369, allocations: 288.8 kB / 339.6 MB, free: 7.754 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000643/0.1375, allocations: 377.7 kB / 339.9 MB, free: 7.359 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1375, allocations: 0 / 339.9 MB, free: 7.359 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001582/0.1391, allocations: 0.7002 MB / 340.6 MB, free: 6.645 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.1392, allocations: 8 kB / 340.6 MB, free: 6.637 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.1392, allocations: 3.938 kB / 340.6 MB, free: 6.633 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009924/0.1402, allocations: 0.4897 MB / 341.1 MB, free: 6.137 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002903/0.1405, allocations: 75.84 kB / 341.2 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/0.1421, allocations: 1.39 MB / 342.6 MB, free: 4.621 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004695/0.1426, allocations: 72.03 kB / 342.7 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.979e-05/0.1427, allocations: 16 kB / 342.7 MB, free: 4.535 MB / 286.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.0002487/0.1429, allocations: 169.3 kB / 342.8 MB, free: 4.359 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.681e-05/0.143, allocations: 35.61 kB / 342.9 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001353/0.1432, allocations: 43.31 kB / 342.9 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.1432, allocations: 4 kB / 342.9 MB, free: 4.281 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.1432, allocations: 0 / 342.9 MB, free: 4.281 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.1432, allocations: 7.984 kB / 342.9 MB, free: 4.273 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003206/0.1464, allocations: 1.349 MB / 344.3 MB, free: 2.848 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.1464, allocations: 4 kB / 344.3 MB, free: 2.844 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.1467, allocations: 59.84 kB / 344.3 MB, free: 2.785 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008207/0.1476, allocations: 465.5 kB / 344.8 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.1476, allocations: 23.97 kB / 344.8 MB, free: 2.301 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.1489, allocations: 1.335 MB / 346.2 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.1489, allocations: 4.219 kB / 346.2 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.1508, allocations: 0.9354 MB / 347.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.151, allocations: 160.7 kB / 347.3 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.193e-05/0.1511, allocations: 23.94 kB / 347.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003113/0.1514, allocations: 35.95 kB / 347.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.1517, allocations: 83.86 kB / 347.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.294e-05/0.1517, allocations: 19.97 kB / 347.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001882/0.1519, allocations: 172.5 kB / 347.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1519, allocations: 7.938 kB / 347.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005937/0.1525, allocations: 104 kB / 347.7 MB, free: 15.32 MB / 302.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.002344/0.1549, allocations: 1.511 MB / 349.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.1561, allocations: 0.522 MB / 349.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.1561, allocations: 0 / 349.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006756/0.1568, allocations: 292.3 kB / 350 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000663/0.1575, allocations: 56.34 kB / 350.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007597/0.1651, allocations: 4.134 MB / 354.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005579/0.1657, allocations: 0.7761 MB / 355 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.1659, allocations: 34.95 kB / 355 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.166, allocations: 91.41 kB / 355.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of SimCode: time 1.613e-06/0.1661, allocations: 0 / 355.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03978/0.2058, allocations: 11.51 MB / 366.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.56, allocations: 11.83 kB / 366.6 MB, free: 12.08 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches