Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.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.0009187/0.0009187, 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.0008397/0.0008397, allocations: 218.8 kB / 22.25 MB, free: 3.582 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.9182/0.9182, allocations: 230.6 MB / 256 MB, free: 9.625 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.004871/0.004871, allocations: 1.602 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.Rotational.DCPMBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Rotational_DCPMBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricBraking.Examples.Rotational.DCPMBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Rotational_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.0008592/0.0008592, allocations: 66.45 kB / 436.6 MB, free: 46.41 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06366/0.06452, allocations: 53.78 MB / 490.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.003429/0.06795, allocations: 3.738 MB / 494.1 MB, free: 6.797 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.06938, allocations: 1.281 MB / 495.4 MB, free: 5.508 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001911/0.06957, allocations: 11.94 kB / 495.4 MB, free: 5.496 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004899/0.07006, allocations: 194.6 kB / 495.6 MB, free: 5.305 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002216/0.07028, allocations: 198.5 kB / 495.8 MB, free: 5.109 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001366/0.07042, allocations: 107.9 kB / 495.9 MB, free: 5.004 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003747/0.07079, allocations: 0.5988 MB / 496.5 MB, free: 4.402 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.07101, allocations: 168 kB / 496.7 MB, free: 4.234 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002412/0.07125, allocations: 243.1 kB / 496.9 MB, free: 3.996 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/0.07144, allocations: 210.9 kB / 497.1 MB, free: 3.789 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.028e-05/0.07148, allocations: 52 kB / 497.2 MB, free: 3.738 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.391e-05/0.07157, allocations: 71.98 kB / 497.2 MB, free: 3.668 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.351e-05/0.07163, allocations: 119.5 kB / 497.4 MB, free: 3.551 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.07174, allocations: 230.9 kB / 497.6 MB, free: 3.324 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004286/0.07217, allocations: 0.6225 MB / 498.2 MB, free: 2.699 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.07217, allocations: 0 / 498.2 MB, free: 2.699 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.07218, allocations: 0 / 498.2 MB, free: 2.699 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.07218, allocations: 0 / 498.2 MB, free: 2.699 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.0007343/0.07292, allocations: 0.7386 MB / 498.9 MB, free: 1.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.07296, allocations: 8.031 kB / 499 MB, free: 1.922 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.36e-05/0.07303, allocations: 86.7 kB / 499 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.07317, allocations: 68.59 kB / 499.1 MB, free: 1.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.07351, allocations: 314.1 kB / 499.4 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.07354, allocations: 37.38 kB / 499.4 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.278e-05/0.07361, allocations: 52.52 kB / 499.5 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004585/0.07407, allocations: 495.2 kB / 500 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.07408, allocations: 7.938 kB / 500 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.07411, allocations: 23.94 kB / 0.4883 GB, free: 0.793 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.07412, allocations: 8 kB / 0.4883 GB, free: 0.7852 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003104/0.07443, allocations: 271.9 kB / 0.4886 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.07572, allocations: 1.443 MB / 0.49 GB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/0.07601, allocations: 214 kB / 0.4902 GB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.07612, allocations: 97.3 kB / 0.4903 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.07613, allocations: 240 / 0.4903 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.887e-05/0.07615, allocations: 38.8 kB / 0.4903 GB, free: 14.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 8.82e-07/0.07615, allocations: 0 / 0.4903 GB, free: 14.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.000851/0.077, allocations: 0.6907 MB / 0.491 GB, free: 13.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.471e-05/0.07702, allocations: 55.41 kB / 0.491 GB, free: 13.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.07725, allocations: 336.5 kB / 0.4914 GB, free: 13.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.07727, allocations: 33.7 kB / 0.4914 GB, free: 13.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.07738, allocations: 264.3 kB / 0.4916 GB, free: 13.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.07742, allocations: 103.1 kB / 0.4917 GB, free: 13.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.777e-05/0.07748, allocations: 65.59 kB / 0.4918 GB, free: 13.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.849e-05/0.07757, allocations: 346.8 kB / 0.4921 GB, free: 12.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.998e-05/0.07766, allocations: 75.97 kB / 0.4922 GB, free: 12.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.07778, allocations: 171.1 kB / 0.4924 GB, free: 12.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002364/0.07802, allocations: 275.5 kB / 0.4926 GB, free: 12.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.07802, allocations: 4 kB / 0.4926 GB, free: 12.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003155/0.07833, allocations: 334 kB / 0.4929 GB, free: 11.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.07835, allocations: 4 kB / 0.493 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-06/0.07835, allocations: 4 kB / 0.493 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.627e-05/0.07844, allocations: 32.72 kB / 0.493 GB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.07858, allocations: 71.91 kB / 0.4931 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005976/0.07917, allocations: 1.279 MB / 0.4943 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.476e-05/0.07926, allocations: 8 kB / 0.4943 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.07927, allocations: 16 kB / 0.4943 GB, free: 10.23 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 (42): * Single equations (assignments): 41 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.07939, allocations: 169.6 kB / 0.4945 GB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.07942, allocations: 39.8 kB / 0.4945 GB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.07945, allocations: 40.11 kB / 0.4946 GB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.07946, allocations: 8 kB / 0.4946 GB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.07946, allocations: 7.766 kB / 0.4946 GB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.07946, allocations: 4 kB / 0.4946 GB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006238/0.08009, allocations: 0.6994 MB / 0.4953 GB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.08009, allocations: 4 kB / 0.4953 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.08023, allocations: 55.91 kB / 0.4953 GB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-05/0.08027, allocations: 24.78 kB / 0.4953 GB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.08028, allocations: 4 kB / 0.4954 GB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004919/0.08077, allocations: 1.271 MB / 0.4966 GB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.08077, allocations: 0 / 0.4966 GB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003651/0.08114, allocations: 459.6 kB / 0.497 GB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.44e-05/0.0812, allocations: 47.84 kB / 0.4971 GB, free: 7.203 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.08122, allocations: 4 kB / 0.4971 GB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.479e-05/0.08131, allocations: 24.27 kB / 0.4971 GB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.703e-05/0.08135, allocations: 23.91 kB / 0.4971 GB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.08136, allocations: 12 kB / 0.4971 GB, free: 7.141 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001487/0.08151, allocations: 231.1 kB / 0.4974 GB, free: 6.914 MB / 362.7 MB Notification: Performance of sort global known variables: time 3e-08/0.08151, allocations: 0 / 0.4974 GB, free: 6.914 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002285/0.08174, allocations: 88 kB / 0.4974 GB, free: 6.828 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (inertiaLoad.w,integrator.y,heatCapacitor.T,dcpm.inertiaRotor.phi,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 (27): * Single equations (assignments): 26 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005187/0.08226, allocations: 0.9979 MB / 0.4984 GB, free: 5.793 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003431/0.0826, allocations: 326.4 kB / 0.4987 GB, free: 5.461 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.0826, allocations: 0 / 0.4987 GB, free: 5.461 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.08275, allocations: 206.6 kB / 0.4989 GB, free: 5.246 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.08304, allocations: 65.92 kB / 0.499 GB, free: 5.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.08587, allocations: 3.686 MB / 0.5026 GB, free: 1.316 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001293/0.086, allocations: 219.5 kB / 0.5028 GB, free: 1.078 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.67e-05/0.08609, allocations: 30.97 kB / 0.5028 GB, free: 1.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.08621, allocations: 143.4 kB / 0.503 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.08621, allocations: 0 / 0.503 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07397/0.1602, allocations: 8.281 MB / 0.5111 GB, free: 8.812 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.565/6.725, allocations: 8.062 kB / 0.5111 GB, free: 8.805 MB / 378.7 MB " [Timeout remaining time 653] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_ElectricBraking_ElectricBraking_Examples_Rotational_DCPMBraking_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 ../ElectricBraking_ElectricBraking_Examples_Rotational_DCPMBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe 2>&1) [Timeout 52.5] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_fmpy.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_fmpy.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../ElectricBraking_ElectricBraking.Examples.Rotational.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_Rotational_DCPMBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.750808242708445]