Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000861/0.000861, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009079/0.0009079, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.016/1.016, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo): time 0.004813/0.004813, allocations: 1.188 MB / 260.4 MB, free: 12.1 MB / 250.7 MB " [Timeout remaining time 180] Using package ElectricBraking with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ElectricBraking.Examples.Translational.MechanicalBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Translational_MechanicalBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricBraking.Examples.Translational.MechanicalBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Translational_MechanicalBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 383 MB, free: 13.69 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.798e-05/1.949e-05, allocations: 2.281 kB / 383 MB, free: 13.68 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.MechanicalBraking): time 0.002647/0.002666, allocations: 2.392 MB / 385.4 MB, free: 11.28 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.00373, allocations: 0.9077 MB / 386.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.003861, allocations: 7.938 kB / 386.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003729/0.004234, allocations: 79.41 kB / 386.4 MB, free: 10.28 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002039/0.004438, allocations: 123 kB / 386.5 MB, free: 10.16 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001656/0.004604, allocations: 111.8 kB / 386.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002753/0.004879, allocations: 371.3 kB / 387 MB, free: 9.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.005008, allocations: 41.17 kB / 387.1 MB, free: 9.641 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002699/0.005278, allocations: 223.5 kB / 387.3 MB, free: 9.422 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.005445, allocations: 131.6 kB / 387.4 MB, free: 9.293 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.483e-05/0.00549, allocations: 28 kB / 387.4 MB, free: 9.266 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.005597, allocations: 83.91 kB / 387.5 MB, free: 9.184 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.461e-05/0.005692, allocations: 71.73 kB / 387.6 MB, free: 9.113 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.252e-05/0.005774, allocations: 103.7 kB / 387.7 MB, free: 9.012 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.006114, allocations: 386.8 kB / 388.1 MB, free: 8.633 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.006116, allocations: 0 / 388.1 MB, free: 8.633 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.006117, allocations: 0 / 388.1 MB, free: 8.633 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.006122, allocations: 0 / 388.1 MB, free: 8.633 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007395/0.006862, allocations: 0.5323 MB / 388.6 MB, free: 8.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.006902, allocations: 12.03 kB / 388.6 MB, free: 8.059 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.979e-05/0.006952, allocations: 58.61 kB / 388.7 MB, free: 7.992 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.564e-05/0.007008, allocations: 36.73 kB / 388.7 MB, free: 7.957 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002852/0.007293, allocations: 221 kB / 388.9 MB, free: 7.715 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.007312, allocations: 16.88 kB / 388.9 MB, free: 7.699 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.007347, allocations: 16.38 kB / 388.9 MB, free: 7.684 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003584/0.007705, allocations: 276.1 kB / 389.2 MB, free: 7.398 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.00772, allocations: 4.188 kB / 389.2 MB, free: 7.395 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.007742, allocations: 16.12 kB / 389.2 MB, free: 7.379 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.00775, allocations: 7.938 kB / 389.2 MB, free: 7.371 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000319/0.008069, allocations: 225.8 kB / 389.5 MB, free: 7.148 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.009299, allocations: 0.8596 MB / 390.3 MB, free: 6.227 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.009591, allocations: 200.8 kB / 390.5 MB, free: 6.023 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.009719, allocations: 100.8 kB / 390.6 MB, free: 5.922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.009739, allocations: 0 / 390.6 MB, free: 5.922 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.887e-05/0.009758, allocations: 34.56 kB / 390.6 MB, free: 5.879 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.202e-06/0.009759, allocations: 0 / 390.6 MB, free: 5.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.001647/0.01141, allocations: 0.9774 MB / 391.6 MB, free: 4.844 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.01144, allocations: 59.34 kB / 391.7 MB, free: 4.773 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.01161, allocations: 237.7 kB / 391.9 MB, free: 4.535 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.01164, allocations: 37.7 kB / 392 MB, free: 4.492 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.191e-05/0.01171, allocations: 152.8 kB / 392.1 MB, free: 4.336 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.492e-05/0.01176, allocations: 99.34 kB / 392.2 MB, free: 4.238 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.786e-05/0.01183, allocations: 61.66 kB / 392.3 MB, free: 4.172 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.776e-05/0.01192, allocations: 330.8 kB / 392.6 MB, free: 3.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.01207, allocations: 107.7 kB / 392.7 MB, free: 3.734 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.01224, allocations: 180.2 kB / 392.9 MB, free: 3.531 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.0125, allocations: 229 kB / 393.1 MB, free: 3.281 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.0125, allocations: 4 kB / 393.1 MB, free: 3.277 MB / 314.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005106/0.01301, allocations: 383.7 kB / 393.5 MB, free: 2.895 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.01302, allocations: 8 kB / 393.5 MB, free: 2.887 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.01303, allocations: 4 kB / 393.5 MB, free: 2.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003093/0.01334, allocations: 176.7 kB / 393.6 MB, free: 2.707 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.01346, allocations: 47.92 kB / 393.7 MB, free: 2.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004647/0.01392, allocations: 0.6889 MB / 394.4 MB, free: 1.945 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.01406, allocations: 35.95 kB / 394.4 MB, free: 1.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.01408, allocations: 8 kB / 394.4 MB, free: 1.902 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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 {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001097/0.01419, allocations: 145.8 kB / 394.6 MB, free: 1.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.01422, allocations: 23.86 kB / 394.6 MB, free: 1.727 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.345e-05/0.01427, allocations: 34.27 kB / 394.6 MB, free: 1.695 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.01427, allocations: 8.062 kB / 394.6 MB, free: 1.688 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.01428, allocations: 0 / 394.6 MB, free: 1.688 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.01428, allocations: 3.938 kB / 394.6 MB, free: 1.684 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009732/0.01526, allocations: 0.7573 MB / 395.4 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.01526, allocations: 0 / 395.4 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.01537, allocations: 35.92 kB / 395.4 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000218/0.01559, allocations: 156.8 kB / 395.6 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.01561, allocations: 15.94 kB / 395.6 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004143/0.01602, allocations: 0.6577 MB / 396.3 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01602, allocations: 0 / 396.3 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008779/0.0169, allocations: 0.5288 MB / 396.8 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.75e-05/0.01698, allocations: 47.81 kB / 396.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.769e-05/0.01702, allocations: 19.98 kB / 396.9 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.01712, allocations: 20.05 kB / 396.9 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.664e-05/0.01721, allocations: 47.84 kB / 396.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.01723, allocations: 11.98 kB / 396.9 MB, free: 15.28 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001148/0.01734, allocations: 177.2 kB / 397.1 MB, free: 15.1 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01734, allocations: 0 / 397.1 MB, free: 15.1 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002484/0.01759, allocations: 60 kB / 397.2 MB, free: 15.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (massLoad.s,massLoad.v,integrator.y,heatCapacitor.T) * Number of discrete variables: 5 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 3 (brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * 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 {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001379/0.01897, allocations: 1.364 MB / 398.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004279/0.0194, allocations: 262.8 kB / 398.8 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.0194, allocations: 0 / 398.8 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001826/0.01958, allocations: 135.7 kB / 398.9 MB, free: 13.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.01988, allocations: 48.39 kB / 399 MB, free: 13.37 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/0.02307, allocations: 3.081 MB / 402 MB, free: 10.13 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.02318, allocations: 154.1 kB / 402.2 MB, free: 9.961 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.058e-05/0.02325, allocations: 22.3 kB / 402.2 MB, free: 9.938 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.097e-05/0.02334, allocations: 80.45 kB / 402.3 MB, free: 9.859 MB / 330.7 MB Notification: Performance of SimCode: time 8.02e-07/0.02334, allocations: 0 / 402.3 MB, free: 9.859 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0831/0.1064, allocations: 8.096 MB / 410.4 MB, free: 1.836 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.177/8.284, allocations: 12.61 kB / 410.4 MB, free: 1.828 MB / 330.7 MB " [Timeout remaining time 652] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_ElectricBraking_ElectricBraking_Examples_Translational_MechanicalBraking_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 ../ElectricBraking_ElectricBraking_Examples_Translational_MechanicalBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe 2>&1) [Timeout 52.5] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking_fmpy.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking_fmpy.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking_fmpy_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 ../ElectricBraking_ElectricBraking_Examples_Translational_MechanicalBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.556477140635252]