Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.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.0008746/0.0008746, allocations: 109.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.000962/0.000962, allocations: 220.7 kB / 22.25 MB, free: 3.734 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.9262/0.9262, allocations: 230.6 MB / 256 MB, free: 9.609 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.004559/0.004559, allocations: 1.606 MB / 314 MB, free: 384 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.DCPMBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Translational_DCPMBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricBraking.Examples.Translational.DCPMBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Translational_DCPMBraking",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.0009094/0.0009094, allocations: 78.23 kB / 436.6 MB, free: 46.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06811/0.06902, allocations: 53.77 MB / 490.4 MB, free: 10.54 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.DCPMBraking): time 0.003899/0.07292, allocations: 4.09 MB / 494.5 MB, free: 6.438 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.07478, allocations: 1.336 MB / 495.8 MB, free: 5.094 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002933/0.07507, allocations: 15.94 kB / 495.8 MB, free: 5.078 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006013/0.07568, allocations: 210.4 kB / 496 MB, free: 4.871 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003896/0.07607, allocations: 214.3 kB / 496.2 MB, free: 4.66 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.07632, allocations: 123.9 kB / 496.4 MB, free: 4.539 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006011/0.07692, allocations: 0.6766 MB / 497 MB, free: 3.859 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002652/0.07718, allocations: 189 kB / 497.2 MB, free: 3.672 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004013/0.07758, allocations: 263 kB / 497.5 MB, free: 3.414 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002475/0.07783, allocations: 246.7 kB / 497.7 MB, free: 3.172 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.682e-05/0.07788, allocations: 60 kB / 497.8 MB, free: 3.113 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.078, allocations: 79.98 kB / 497.9 MB, free: 3.035 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.951e-05/0.07806, allocations: 131.5 kB / 498 MB, free: 2.906 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.07821, allocations: 258.8 kB / 498.2 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006501/0.07886, allocations: 0.712 MB / 499 MB, free: 1.938 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.07886, allocations: 0 / 499 MB, free: 1.938 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.07886, allocations: 0 / 499 MB, free: 1.938 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.07887, allocations: 0 / 499 MB, free: 1.938 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.0009419/0.07982, allocations: 0.7856 MB / 499.7 MB, free: 1.117 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.07986, allocations: 12.03 kB / 499.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.211e-05/0.07993, allocations: 94.7 kB / 499.8 MB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001853/0.08012, allocations: 80.5 kB / 499.9 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005838/0.0807, allocations: 347.3 kB / 0.4885 GB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.08073, allocations: 41.69 kB / 0.4886 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.999e-05/0.08082, allocations: 56.52 kB / 0.4886 GB, free: 480 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005441/0.08136, allocations: 0.5383 MB / 0.4892 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.08138, allocations: 4 kB / 0.4892 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.827e-05/0.08141, allocations: 20 kB / 0.4892 GB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.08142, allocations: 12 kB / 0.4892 GB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003749/0.08179, allocations: 311.8 kB / 0.4895 GB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.0834, allocations: 1.564 MB / 0.491 GB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003367/0.08373, allocations: 239.3 kB / 0.4912 GB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.08386, allocations: 113.4 kB / 0.4914 GB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/0.08387, allocations: 288 / 0.4914 GB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.08389, allocations: 34.84 kB / 0.4914 GB, free: 13.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.142e-06/0.08389, allocations: 0 / 0.4914 GB, free: 13.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.001706/0.0856, allocations: 1.109 MB / 0.4925 GB, free: 12.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.08563, allocations: 59.34 kB / 0.4925 GB, free: 12.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002816/0.08591, allocations: 373.6 kB / 0.4929 GB, free: 11.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.08593, allocations: 37.7 kB / 0.4929 GB, free: 11.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.08606, allocations: 272.3 kB / 0.4932 GB, free: 11.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.628e-05/0.08612, allocations: 138.8 kB / 0.4933 GB, free: 11.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-05/0.0862, allocations: 78.08 kB / 0.4934 GB, free: 11.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.18e-05/0.0863, allocations: 350.8 kB / 0.4937 GB, free: 11.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.08641, allocations: 96.84 kB / 0.4938 GB, free: 10.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.08657, allocations: 206.2 kB / 0.494 GB, free: 10.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.08686, allocations: 315.1 kB / 0.4943 GB, free: 10.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.08686, allocations: 4 kB / 0.4943 GB, free: 10.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004322/0.08729, allocations: 417.3 kB / 0.4947 GB, free: 9.914 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.08731, allocations: 4.344 kB / 0.4947 GB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.08732, allocations: 8 kB / 0.4947 GB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001452/0.08746, allocations: 44.83 kB / 0.4948 GB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.08764, allocations: 87.83 kB / 0.4948 GB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008742/0.08851, allocations: 1.444 MB / 0.4963 GB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.08862, allocations: 16 kB / 0.4963 GB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.08864, allocations: 16.06 kB / 0.4963 GB, free: 8.184 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 (switch.control,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001495/0.08879, allocations: 177.7 kB / 0.4965 GB, free: 8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.077e-05/0.08883, allocations: 39.77 kB / 0.4965 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.846e-05/0.08888, allocations: 52.23 kB / 0.4965 GB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.08888, allocations: 4 kB / 0.4966 GB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.08889, allocations: 3.938 kB / 0.4966 GB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.0889, allocations: 0 / 0.4966 GB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008499/0.08975, allocations: 0.862 MB / 0.4974 GB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.08975, allocations: 0 / 0.4974 GB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.08993, allocations: 67.84 kB / 0.4975 GB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.153e-05/0.09001, allocations: 36.83 kB / 0.4975 GB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.09002, allocations: 11.94 kB / 0.4975 GB, free: 6.863 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009484/0.09097, allocations: 1.374 MB / 0.4988 GB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.09097, allocations: 4.094 kB / 0.4989 GB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004902/0.09146, allocations: 0.5446 MB / 0.4994 GB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.952e-05/0.09155, allocations: 67.73 kB / 0.4994 GB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/0.09158, allocations: 12.12 kB / 0.4995 GB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.09168, allocations: 12 kB / 0.4995 GB, free: 4.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/0.09174, allocations: 27.89 kB / 0.4995 GB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.09175, allocations: 15.98 kB / 0.4995 GB, free: 4.668 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000186/0.09194, allocations: 263.2 kB / 0.4998 GB, free: 4.414 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09194, allocations: 4 kB / 0.4998 GB, free: 4.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002909/0.09223, allocations: 108 kB / 0.4999 GB, free: 4.305 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (massLoad.s,massLoad.v,integrator.y,heatCapacitor.T,dcpm.armatureInductance.i) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006787/0.09291, allocations: 1.09 MB / 0.5009 GB, free: 3.176 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004849/0.09339, allocations: 390.8 kB / 0.5013 GB, free: 2.781 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.09339, allocations: 4.062 kB / 0.5013 GB, free: 2.777 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.09359, allocations: 254.5 kB / 0.5016 GB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.09394, allocations: 63.48 kB / 0.5016 GB, free: 2.457 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.0978, allocations: 4.101 MB / 0.5056 GB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.09796, allocations: 246.2 kB / 0.5059 GB, free: 13.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001319/0.09809, allocations: 51.22 kB / 0.5059 GB, free: 13.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.09824, allocations: 159.4 kB / 0.5061 GB, free: 13.71 MB / 378.7 MB Notification: Performance of SimCode: time 1.433e-06/0.09824, allocations: 0 / 0.5061 GB, free: 13.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07825/0.1765, allocations: 9.413 MB / 0.5152 GB, free: 4.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.97/7.146, allocations: 14.44 kB / 0.5153 GB, free: 4.473 MB / 378.7 MB " [Timeout remaining time 653] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_ElectricBraking_ElectricBraking_Examples_Translational_DCPMBraking_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 ../ElectricBraking_ElectricBraking_Examples_Translational_DCPMBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe 2>&1) [Timeout 52.5] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 ../ElectricBraking_ElectricBraking_Examples_Translational_DCPMBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.29387740418315]