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.0007364/0.0007364, allocations: 105.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.001213/0.001213, allocations: 214.6 kB / 22.25 MB, free: 3.574 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.9443/0.9443, allocations: 230.6 MB / 256 MB, free: 9.629 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.004707/0.004707, allocations: 1.6 MB / 314 MB, free: 388 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.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: 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.0009389/0.0009389, allocations: 75.27 kB / 436.6 MB, free: 46.39 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06613/0.06707, allocations: 53.78 MB / 490.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.SMPMBraking): time 0.004982/0.07205, allocations: 5.463 MB / 495.9 MB, free: 5.059 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00275/0.0748, allocations: 1.896 MB / 497.8 MB, free: 3.156 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005648/0.07537, allocations: 43.69 kB / 497.8 MB, free: 3.113 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008641/0.07623, allocations: 377.4 kB / 498.2 MB, free: 2.742 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009005/0.07713, allocations: 465.2 kB / 498.6 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003763/0.07751, allocations: 223.7 kB / 498.8 MB, free: 2.066 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.07881, allocations: 1.863 MB / 0.489 GB, free: 200 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008031/0.07961, allocations: 0.8646 MB / 0.4898 GB, free: 15.28 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000884/0.08049, allocations: 0.8606 MB / 0.4906 GB, free: 14.41 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.08159, allocations: 1.008 MB / 0.4916 GB, free: 13.4 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002978/0.08189, allocations: 220 kB / 0.4918 GB, free: 13.19 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003526/0.08224, allocations: 244 kB / 0.4921 GB, free: 12.95 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003395/0.08258, allocations: 0.5687 MB / 0.4926 GB, free: 12.38 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005499/0.08313, allocations: 0.8091 MB / 0.4934 GB, free: 11.57 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001762/0.08489, allocations: 2.748 MB / 0.4961 GB, free: 8.809 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.08489, allocations: 4 kB / 0.4961 GB, free: 8.805 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.0849, allocations: 0 / 0.4961 GB, free: 8.805 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.291e-05/0.08493, allocations: 0 / 0.4961 GB, free: 8.805 MB / 362.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.00251/0.08744, allocations: 2.076 MB / 0.4981 GB, free: 6.688 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.08749, allocations: 12.03 kB / 0.4981 GB, free: 6.676 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002004/0.08769, allocations: 236.1 kB / 0.4984 GB, free: 6.434 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003386/0.08802, allocations: 203.8 kB / 0.4986 GB, free: 6.234 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.08921, allocations: 1.066 MB / 0.4996 GB, free: 5.141 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.714e-05/0.08928, allocations: 119.2 kB / 0.4997 GB, free: 5.023 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.08942, allocations: 152 kB / 0.4999 GB, free: 4.875 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002139/0.09156, allocations: 2.207 MB / 0.502 GB, free: 2.586 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.907e-05/0.09159, allocations: 12 kB / 0.502 GB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-05/0.09169, allocations: 60 kB / 0.5021 GB, free: 2.516 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.404e-05/0.09174, allocations: 67.05 kB / 0.5022 GB, free: 2.449 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001832/0.09357, allocations: 1.675 MB / 0.5038 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005606/0.09918, allocations: 4.962 MB / 0.5086 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.1003, allocations: 1.068 MB / 0.5097 GB, free: 10.63 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005691/0.1009, allocations: 0.5742 MB / 0.5102 GB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.338e-05/0.1009, allocations: 20.98 kB / 0.5103 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.1009, allocations: 43.59 kB / 0.5103 GB, free: 9.977 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.396e-06/0.1009, allocations: 0 / 0.5103 GB, free: 9.977 MB / 378.7 MB Notification: Performance of matching and sorting (n=96): time 0.006317/0.1072, allocations: 5.162 MB / 0.5153 GB, free: 4.766 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.229e-05/0.1073, allocations: 64.41 kB / 0.5154 GB, free: 4.691 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.1083, allocations: 0.8406 MB / 0.5162 GB, free: 3.836 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.535e-05/0.1084, allocations: 41.7 kB / 0.5163 GB, free: 3.789 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003138/0.1087, allocations: 0.6684 MB / 0.5169 GB, free: 3.113 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.1089, allocations: 349 kB / 0.5172 GB, free: 2.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.1091, allocations: 166.6 kB / 0.5174 GB, free: 2.598 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.923e-05/0.1092, allocations: 345.9 kB / 0.5177 GB, free: 2.254 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005049/0.1097, allocations: 0.5016 MB / 0.5182 GB, free: 1.754 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005572/0.1102, allocations: 0.6543 MB / 0.5189 GB, free: 1.047 MB / 378.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.003711/0.1139, allocations: 2.552 MB / 0.5214 GB, free: 14.44 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1139, allocations: 0 / 0.5214 GB, free: 14.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002381/0.1163, allocations: 1.83 MB / 0.5231 GB, free: 12.59 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.1163, allocations: 9.875 kB / 0.5232 GB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.1164, allocations: 4 kB / 0.5232 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.1174, allocations: 0.6312 MB / 0.5238 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003582/0.1177, allocations: 159.8 kB / 0.5239 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006212/0.1239, allocations: 8.031 MB / 0.5318 GB, free: 3.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004888/0.1244, allocations: 55.95 kB / 0.5318 GB, free: 3.355 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.641e-05/0.1245, allocations: 35.98 kB / 0.5319 GB, free: 3.32 MB / 394.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.0007122/0.1252, allocations: 0.5364 MB / 0.5324 GB, free: 2.773 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.1253, allocations: 115.3 kB / 0.5325 GB, free: 2.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001861/0.1272, allocations: 1.759 MB / 0.5342 GB, free: 0.875 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.1272, allocations: 12 kB / 0.5342 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1272, allocations: 4 kB / 0.5342 GB, free: 0.8594 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.1272, allocations: 3.984 kB / 0.5342 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004008/0.1312, allocations: 3.405 MB / 0.5376 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1312, allocations: 0 / 0.5376 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003241/0.1315, allocations: 131.9 kB / 0.5377 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000896/0.1324, allocations: 0.5628 MB / 0.5382 GB, free: 12.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.542e-05/0.1324, allocations: 23.98 kB / 0.5383 GB, free: 12.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004848/0.1373, allocations: 7.147 MB / 0.5452 GB, free: 5.168 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1373, allocations: 0 / 0.5452 GB, free: 5.168 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002466/0.1398, allocations: 2.473 MB / 0.5476 GB, free: 2.66 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003587/0.1401, allocations: 215.3 kB / 0.5479 GB, free: 2.449 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.191e-05/0.1402, allocations: 24 kB / 0.5479 GB, free: 2.426 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.1405, allocations: 55.95 kB / 0.5479 GB, free: 2.371 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.1406, allocations: 80.78 kB / 0.548 GB, free: 2.293 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.836e-05/0.1407, allocations: 27.98 kB / 0.548 GB, free: 2.266 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005259/0.1412, allocations: 0.5888 MB / 0.5486 GB, free: 1.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1412, allocations: 0 / 0.5486 GB, free: 1.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007765/0.142, allocations: 347.9 kB / 0.5489 GB, free: 1.34 MB / 410.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.178/0.32, allocations: 3.046 MB / 0.5519 GB, free: 65.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002429/0.3224, allocations: 1.796 MB / 0.5537 GB, free: 65.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.3224, allocations: 0 / 0.5537 GB, free: 65.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001554/0.324, allocations: 1.177 MB / 0.5548 GB, free: 64.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.3252, allocations: 265 kB / 0.5551 GB, free: 64.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01623/0.3414, allocations: 11.98 MB / 0.5668 GB, free: 59.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008317/0.3422, allocations: 0.9287 MB / 0.5677 GB, free: 58.79 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005855/0.3428, allocations: 216.6 kB / 0.5679 GB, free: 58.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004894/0.3433, allocations: 0.5138 MB / 0.5684 GB, free: 58.35 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.3433, allocations: 0 / 0.5684 GB, free: 58.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1329/0.4762, allocations: 32.56 MB / 0.6002 GB, free: 29.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.457/8.933, allocations: 9.438 kB / 0.6002 GB, free: 29.12 MB / 410.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.19497247878462]