Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.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.0008981/0.0008981, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.00127/0.00127, allocations: 165.9 kB / 22.45 MB, free: 2.109 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 0.9298/0.9298, 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.00475/0.00475, allocations: 1.194 MB / 260.4 MB, free: 12.11 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.SMPMBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Translational_SMPMBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricBraking.Examples.Translational.SMPMBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Translational_SMPMBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 383 MB, free: 13.68 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.08e-05/2.254e-05, allocations: 2.281 kB / 383 MB, free: 13.68 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.SMPMBraking): time 0.006242/0.006265, allocations: 5.457 MB / 388.5 MB, free: 8.184 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003307/0.009572, allocations: 1.908 MB / 390.4 MB, free: 6.27 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007573/0.01033, allocations: 51.62 kB / 390.5 MB, free: 6.219 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009718/0.0113, allocations: 377.2 kB / 390.8 MB, free: 5.848 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001021/0.01232, allocations: 480.7 kB / 391.3 MB, free: 5.375 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.01275, allocations: 227.6 kB / 391.5 MB, free: 5.152 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001626/0.01437, allocations: 1.928 MB / 393.4 MB, free: 3.215 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001097/0.01547, allocations: 0.8723 MB / 394.3 MB, free: 2.297 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00175/0.01722, allocations: 1.251 MB / 395.6 MB, free: 1.043 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001161/0.01838, allocations: 0.8963 MB / 396.5 MB, free: 148 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003701/0.01875, allocations: 220 kB / 396.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004102/0.01916, allocations: 239.9 kB / 396.9 MB, free: 15.7 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004221/0.01958, allocations: 0.592 MB / 397.5 MB, free: 15.1 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006087/0.02019, allocations: 0.6899 MB / 398.2 MB, free: 14.41 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001951/0.02214, allocations: 2.766 MB / 401 MB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.02215, allocations: 8 kB / 401 MB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.02215, allocations: 0 / 401 MB, free: 11.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.579e-05/0.02217, allocations: 0 / 401 MB, free: 11.63 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 394 * Number of variables: 394 Notification: Performance of Generate backend data structure: time 0.002822/0.025, allocations: 2.061 MB / 403 MB, free: 9.527 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.02504, allocations: 8.031 kB / 403 MB, free: 9.52 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002135/0.02526, allocations: 236.1 kB / 403.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003463/0.0256, allocations: 207.8 kB / 403.5 MB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001245/0.02685, allocations: 1.066 MB / 404.5 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.51e-05/0.02691, allocations: 115.4 kB / 404.7 MB, free: 7.859 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.02706, allocations: 156.3 kB / 404.8 MB, free: 7.707 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00224/0.0293, allocations: 2.211 MB / 407 MB, free: 5.418 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.179e-05/0.02933, allocations: 7.922 kB / 407 MB, free: 5.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.02944, allocations: 71.97 kB / 407.1 MB, free: 5.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.276e-05/0.02949, allocations: 59.06 kB / 407.2 MB, free: 5.281 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.03146, allocations: 1.683 MB / 408.8 MB, free: 3.594 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1424/0.1738, allocations: 4.948 MB / 413.8 MB, free: 36.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.1751, allocations: 1.062 MB / 414.8 MB, free: 36.46 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006854/0.1758, allocations: 0.5737 MB / 415.4 MB, free: 36.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.695e-05/0.1758, allocations: 18.02 kB / 415.4 MB, free: 36.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.1759, allocations: 42.91 kB / 415.5 MB, free: 36.2 MB / 330.7 MB Notification: Performance of pre-optimization done (n=84): time 3.006e-06/0.1759, allocations: 0 / 415.5 MB, free: 36.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=96): time 0.007527/0.1834, allocations: 5.163 MB / 420.6 MB, free: 34.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.1834, allocations: 65.97 kB / 420.7 MB, free: 34.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.1845, allocations: 0.8387 MB / 421.5 MB, free: 33.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.658e-05/0.1846, allocations: 41.83 kB / 421.6 MB, free: 33.89 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002913/0.1849, allocations: 0.672 MB / 422.3 MB, free: 33.46 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.185, allocations: 344.6 kB / 422.6 MB, free: 33.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.1852, allocations: 167.4 kB / 422.8 MB, free: 33.15 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.594e-05/0.1853, allocations: 347.8 kB / 423.1 MB, free: 32.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006112/0.1859, allocations: 0.4907 MB / 423.6 MB, free: 32.65 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006309/0.1866, allocations: 0.6546 MB / 424.2 MB, free: 32.31 MB / 330.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.003838/0.1904, allocations: 2.553 MB / 426.8 MB, free: 31.39 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1904, allocations: 5.812 kB / 426.8 MB, free: 31.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.00214/0.1925, allocations: 1.827 MB / 428.6 MB, free: 30.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.1926, allocations: 10.72 kB / 428.6 MB, free: 30.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.1926, allocations: 4.125 kB / 428.6 MB, free: 30.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/0.1937, allocations: 0.6253 MB / 429.3 MB, free: 30.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003837/0.194, allocations: 161.5 kB / 429.4 MB, free: 30.49 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005152/0.1992, allocations: 8.03 MB / 437.5 MB, free: 24.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004757/0.1997, allocations: 44.56 kB / 437.5 MB, free: 24.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-05/0.1997, allocations: 40.25 kB / 437.5 MB, free: 24.18 MB / 330.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: massLoad.s = $START.massLoad.s. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (switch.control[3],switch.control[2],switch.control[1],integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,14,76.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006791/0.2004, allocations: 0.5324 MB / 438.1 MB, free: 23.64 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.777e-05/0.2005, allocations: 111.3 kB / 438.2 MB, free: 23.53 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001709/0.2022, allocations: 1.763 MB / 439.9 MB, free: 21.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.2022, allocations: 16 kB / 440 MB, free: 21.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2022, allocations: 4 kB / 440 MB, free: 21.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.2022, allocations: 7.969 kB / 440 MB, free: 21.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003539/0.2058, allocations: 3.388 MB / 443.4 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2058, allocations: 0 / 443.4 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003239/0.2061, allocations: 139.5 kB / 443.5 MB, free: 18.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008923/0.207, allocations: 0.5604 MB / 444.1 MB, free: 17.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.207e-05/0.207, allocations: 24.86 kB / 444.1 MB, free: 17.56 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00395/0.211, allocations: 7.138 MB / 451.2 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.211, allocations: 8 kB / 451.2 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/0.2133, allocations: 2.477 MB / 453.7 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.2137, allocations: 222.5 kB / 453.9 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.968e-05/0.2137, allocations: 20 kB / 453.9 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003046/0.214, allocations: 55.95 kB / 454 MB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.2142, allocations: 83.25 kB / 454.1 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.986e-05/0.2142, allocations: 27.98 kB / 454.1 MB, free: 7.195 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004668/0.2147, allocations: 0.5888 MB / 454.7 MB, free: 6.613 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.2147, allocations: 0 / 454.7 MB, free: 6.613 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008576/0.2156, allocations: 347.9 kB / 455 MB, free: 6.273 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (massLoad.s,massLoad.v,integrator.y,heatCapacitor.T,smpm.clarkeParkConverter.idq[1],smpm.clarkeParkConverter.idq[2]) * Number of discrete variables: 3 (switch.control[1],switch.control[2],switch.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,14,76.0%), (2,1,100.0%), (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.002318/0.2179, allocations: 3.045 MB / 458.1 MB, free: 3.184 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001858/0.2197, allocations: 1.798 MB / 459.9 MB, free: 1.355 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.2197, allocations: 4 kB / 459.9 MB, free: 1.352 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.2208, allocations: 1.175 MB / 461.1 MB, free: 140 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009036/0.2217, allocations: 268.2 kB / 461.3 MB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/0.2354, allocations: 11.88 MB / 473.2 MB, free: 3.754 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007724/0.2361, allocations: 0.9302 MB / 474.1 MB, free: 2.785 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004651/0.2366, allocations: 216.3 kB / 474.3 MB, free: 2.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004621/0.2371, allocations: 0.5159 MB / 474.9 MB, free: 2.055 MB / 346.7 MB Notification: Performance of SimCode: time 9.62e-07/0.2371, allocations: 0 / 474.9 MB, free: 2.055 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1319/0.369, allocations: 32.65 MB / 0.4956 GB, free: 1.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.825/9.194, allocations: 4 kB / 0.4956 GB, free: 1.746 MB / 378.7 MB " [Timeout remaining time 651] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_ElectricBraking_ElectricBraking_Examples_Translational_SMPMBraking_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 ../ElectricBraking_ElectricBraking_Examples_Translational_SMPMBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking.pipe 2>&1) [Timeout 52.5] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_fmpy.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_fmpy.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_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_SMPMBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Translational.SMPMBraking_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.51216671988368]