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.0007271/0.0007271, allocations: 101.5 kB / 18.95 MB, free: 1.184 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.0007132/0.0007132, allocations: 221.8 kB / 22.25 MB, free: 3.559 MB / 13.93 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 0.9019/0.9019, allocations: 230.6 MB / 256 MB, free: 9.578 MB / 202.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.004602/0.004602, allocations: 1.599 MB / 314 MB, free: 340 kB / 234.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: ElectricBraking requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008837/0.0008837, allocations: 74.28 kB / 436.6 MB, free: 46.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07071/0.07159, allocations: 53.78 MB / 490.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.MechanicalBraking): time 0.002667/0.07426, allocations: 2.377 MB / 492.8 MB, free: 8.117 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.07541, allocations: 0.9001 MB / 493.7 MB, free: 7.211 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.606e-05/0.0755, allocations: 7.938 kB / 493.7 MB, free: 7.203 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003109/0.07581, allocations: 83.41 kB / 493.8 MB, free: 7.121 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.076, allocations: 111.2 kB / 493.9 MB, free: 7.012 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001421/0.07614, allocations: 107.8 kB / 494 MB, free: 6.906 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.0764, allocations: 367.4 kB / 494.3 MB, free: 6.543 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.07652, allocations: 41.45 kB / 494.4 MB, free: 6.5 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002162/0.07674, allocations: 163.5 kB / 494.5 MB, free: 6.34 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.07691, allocations: 155.3 kB / 494.7 MB, free: 6.188 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.07694, allocations: 31.98 kB / 494.7 MB, free: 6.156 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.07705, allocations: 79.98 kB / 494.8 MB, free: 6.078 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.804e-05/0.07715, allocations: 71.8 kB / 494.9 MB, free: 6.008 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.26e-05/0.07723, allocations: 119.4 kB / 495 MB, free: 5.891 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003274/0.07756, allocations: 370.6 kB / 495.3 MB, free: 5.527 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.07756, allocations: 0 / 495.3 MB, free: 5.527 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.07756, allocations: 0 / 495.3 MB, free: 5.527 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.07757, allocations: 0 / 495.3 MB, free: 5.527 MB / 346.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.0006741/0.07824, allocations: 0.5361 MB / 495.9 MB, free: 4.961 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.07828, allocations: 8.031 kB / 495.9 MB, free: 4.953 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.558e-05/0.07833, allocations: 58.72 kB / 495.9 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.769e-05/0.07837, allocations: 36.69 kB / 496 MB, free: 4.852 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002766/0.07865, allocations: 221.8 kB / 496.2 MB, free: 4.609 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.07867, allocations: 16.81 kB / 496.2 MB, free: 4.594 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/0.0787, allocations: 24.38 kB / 496.2 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.07903, allocations: 278.8 kB / 496.5 MB, free: 4.285 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.07904, allocations: 0 / 496.5 MB, free: 4.285 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.07906, allocations: 8 kB / 496.5 MB, free: 4.277 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.07906, allocations: 4 kB / 496.5 MB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002977/0.07936, allocations: 225.5 kB / 496.7 MB, free: 4.051 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009319/0.08029, allocations: 0.8823 MB / 497.6 MB, free: 3.105 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.08055, allocations: 189.2 kB / 497.8 MB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.08067, allocations: 96.91 kB / 497.9 MB, free: 2.816 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/0.08069, allocations: 4 kB / 497.9 MB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.08071, allocations: 34.56 kB / 497.9 MB, free: 2.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.773e-06/0.08071, allocations: 7.938 kB / 497.9 MB, free: 2.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.00151/0.08222, allocations: 0.9759 MB / 498.9 MB, free: 1.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.08225, allocations: 63.33 kB / 499 MB, free: 1.652 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.08243, allocations: 236.9 kB / 499.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.08245, allocations: 37.69 kB / 499.3 MB, free: 1.371 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.974e-05/0.08252, allocations: 148.8 kB / 499.4 MB, free: 1.219 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.984e-05/0.08257, allocations: 91.42 kB / 499.5 MB, free: 1.129 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.829e-05/0.08264, allocations: 69.64 kB / 499.6 MB, free: 1.055 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.341e-05/0.08272, allocations: 334.8 kB / 499.9 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.08286, allocations: 104 kB / 500 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.08302, allocations: 176.2 kB / 0.4884 GB, free: 428 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004752/0.08349, allocations: 235.5 kB / 0.4887 GB, free: 168 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.08349, allocations: 4 kB / 0.4887 GB, free: 164 kB / 346.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000481/0.08397, allocations: 379.5 kB / 0.489 GB, free: 15.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.08399, allocations: 8 kB / 0.489 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.08399, allocations: 0 / 0.489 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002875/0.08428, allocations: 172.9 kB / 0.4892 GB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.08439, allocations: 47.91 kB / 0.4892 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000441/0.08483, allocations: 0.685 MB / 0.4899 GB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.08496, allocations: 44.02 kB / 0.49 GB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.08498, allocations: 8 kB / 0.49 GB, free: 14.79 MB / 362.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.0001033/0.08508, allocations: 155.4 kB / 0.4901 GB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.158e-05/0.08511, allocations: 23.86 kB / 0.4901 GB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.347e-05/0.08515, allocations: 38.2 kB / 0.4902 GB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.08516, allocations: 4 kB / 0.4902 GB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.08516, allocations: 0 / 0.4902 GB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.08517, allocations: 0 / 0.4902 GB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008891/0.08605, allocations: 0.768 MB / 0.4909 GB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.08606, allocations: 0 / 0.4909 GB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.08616, allocations: 39.92 kB / 0.491 GB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000199/0.08636, allocations: 152.8 kB / 0.4911 GB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.08638, allocations: 15.92 kB / 0.4911 GB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003677/0.08674, allocations: 0.65 MB / 0.4918 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.08675, allocations: 3.984 kB / 0.4918 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005552/0.0873, allocations: 0.5338 MB / 0.4923 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.263e-05/0.08737, allocations: 51.81 kB / 0.4923 GB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.0874, allocations: 8 kB / 0.4923 GB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.667e-05/0.0875, allocations: 27.91 kB / 0.4924 GB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.996e-05/0.08758, allocations: 47.91 kB / 0.4924 GB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.08759, allocations: 4 kB / 0.4924 GB, free: 12.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001071/0.0877, allocations: 176.5 kB / 0.4926 GB, free: 11.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0877, allocations: 4 kB / 0.4926 GB, free: 11.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002198/0.08792, allocations: 60 kB / 0.4926 GB, free: 11.92 MB / 362.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.001293/0.08921, allocations: 1.361 MB / 0.494 GB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004/0.08961, allocations: 255.6 kB / 0.4942 GB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.08961, allocations: 0 / 0.4942 GB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001771/0.08979, allocations: 144.4 kB / 0.4944 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.09007, allocations: 36.36 kB / 0.4944 GB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.09325, allocations: 3.19 MB / 0.4975 GB, free: 6.918 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.928e-05/0.09334, allocations: 146.2 kB / 0.4976 GB, free: 6.754 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.074e-05/0.09341, allocations: 26.28 kB / 0.4977 GB, free: 6.727 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.134e-05/0.0935, allocations: 79.41 kB / 0.4977 GB, free: 6.648 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.0935, allocations: 0 / 0.4977 GB, free: 6.648 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0789/0.1724, allocations: 7.95 MB / 0.5055 GB, free: 14.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.458/7.631, allocations: 3.75 kB / 0.5055 GB, free: 14.75 MB / 378.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: 10.683286046609282]