Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.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.000788/0.000788, 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.0007787/0.0007787, allocations: 215.7 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.9004/0.9004, allocations: 230.6 MB / 256 MB, free: 9.613 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.00472/0.00472, allocations: 1.597 MB / 314 MB, free: 372 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.SMPMBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Rotational_SMPMBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricBraking.Examples.Rotational.SMPMBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Rotational_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.0009453/0.0009453, allocations: 69.92 kB / 436.6 MB, free: 46.33 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06378/0.06473, allocations: 53.78 MB / 490.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.00467/0.0694, allocations: 5.107 MB / 495.5 MB, free: 5.387 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002587/0.07198, allocations: 1.83 MB / 497.3 MB, free: 3.551 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004457/0.07243, allocations: 43.69 kB / 497.4 MB, free: 3.508 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000766/0.07319, allocations: 361.5 kB / 497.7 MB, free: 3.152 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008292/0.07402, allocations: 457.4 kB / 498.2 MB, free: 2.703 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.07435, allocations: 207.7 kB / 498.4 MB, free: 2.5 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001265/0.07561, allocations: 1.781 MB / 0.4884 GB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008039/0.07642, allocations: 0.8248 MB / 0.4892 GB, free: 15.84 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009159/0.07733, allocations: 0.8334 MB / 0.4901 GB, free: 15.01 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008882/0.07822, allocations: 0.9768 MB / 0.491 GB, free: 14.03 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003037/0.07852, allocations: 212 kB / 0.4912 GB, free: 13.82 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003049/0.07883, allocations: 248 kB / 0.4915 GB, free: 13.58 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002959/0.07912, allocations: 0.5492 MB / 0.492 GB, free: 13.03 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005003/0.07962, allocations: 0.7858 MB / 0.4928 GB, free: 12.24 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001786/0.08141, allocations: 2.659 MB / 0.4954 GB, free: 9.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.08141, allocations: 0 / 0.4954 GB, free: 9.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.08142, allocations: 0 / 0.4954 GB, free: 9.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.019e-05/0.08145, allocations: 0 / 0.4954 GB, free: 9.57 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: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.002183/0.08363, allocations: 2.021 MB / 0.4973 GB, free: 7.508 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.08367, allocations: 8.031 kB / 0.4973 GB, free: 7.5 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001791/0.08385, allocations: 227.7 kB / 0.4976 GB, free: 7.266 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003028/0.08415, allocations: 211.7 kB / 0.4978 GB, free: 7.059 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.08525, allocations: 1.03 MB / 0.4988 GB, free: 6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.491e-05/0.08531, allocations: 119 kB / 0.4989 GB, free: 5.883 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.08544, allocations: 144 kB / 0.499 GB, free: 5.742 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001939/0.08738, allocations: 2.166 MB / 0.5011 GB, free: 3.492 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.709e-05/0.08741, allocations: 0 / 0.5011 GB, free: 3.492 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-05/0.08749, allocations: 60 kB / 0.5012 GB, free: 3.434 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.175e-05/0.08754, allocations: 58.94 kB / 0.5012 GB, free: 3.375 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.08941, allocations: 1.651 MB / 0.5029 GB, free: 1.719 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00473/0.09415, allocations: 4.839 MB / 0.5076 GB, free: 12.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.09519, allocations: 1.019 MB / 0.5086 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007969/0.09598, allocations: 0.5654 MB / 0.5091 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.049e-05/0.09602, allocations: 8.656 kB / 0.5091 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.09605, allocations: 43.22 kB / 0.5092 GB, free: 11.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 2.204e-06/0.09605, allocations: 0 / 0.5092 GB, free: 11.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.005272/0.1013, allocations: 4.287 MB / 0.5134 GB, free: 6.797 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/0.1014, allocations: 60.41 kB / 0.5134 GB, free: 6.723 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006996/0.1021, allocations: 0.8091 MB / 0.5142 GB, free: 5.902 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.1021, allocations: 41.7 kB / 0.5142 GB, free: 5.855 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.1024, allocations: 0.6604 MB / 0.5149 GB, free: 5.188 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.1025, allocations: 305.4 kB / 0.5152 GB, free: 4.887 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.1027, allocations: 154.6 kB / 0.5153 GB, free: 4.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003308/0.103, allocations: 353.8 kB / 0.5157 GB, free: 4.379 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004513/0.1035, allocations: 481.7 kB / 0.5161 GB, free: 3.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004998/0.104, allocations: 0.6232 MB / 0.5167 GB, free: 3.23 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.003164/0.1071, allocations: 2.47 MB / 0.5191 GB, free: 0.707 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1071, allocations: 0 / 0.5191 GB, free: 0.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001899/0.109, allocations: 1.768 MB / 0.5209 GB, free: 14.92 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1091, allocations: 12.09 kB / 0.5209 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.1091, allocations: 4 kB / 0.5209 GB, free: 14.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009341/0.11, allocations: 0.6058 MB / 0.5215 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.1103, allocations: 143.7 kB / 0.5216 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005921/0.1162, allocations: 7.866 MB / 0.5293 GB, free: 5.934 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005034/0.1167, allocations: 36.03 kB / 0.5293 GB, free: 5.898 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.1168, allocations: 32 kB / 0.5294 GB, free: 5.867 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: smpm.inertiaRotor.phi = $START.smpm.inertiaRotor.phi. 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 (83): * Single equations (assignments): 80 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009493/0.1177, allocations: 0.5326 MB / 0.5299 GB, free: 5.324 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.1178, allocations: 95.39 kB / 0.53 GB, free: 5.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.1196, allocations: 1.688 MB / 0.5316 GB, free: 3.523 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1196, allocations: 8.094 kB / 0.5316 GB, free: 3.516 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.1197, allocations: 7.938 kB / 0.5316 GB, free: 3.508 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.1197, allocations: 11.95 kB / 0.5317 GB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003581/0.1232, allocations: 3.237 MB / 0.5348 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.1232, allocations: 0 / 0.5348 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002967/0.1235, allocations: 123.8 kB / 0.5349 GB, free: 60 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008733/0.1244, allocations: 0.545 MB / 0.5355 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.962e-05/0.1245, allocations: 27.92 kB / 0.5355 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004956/0.1294, allocations: 7.049 MB / 0.5424 GB, free: 8.086 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1294, allocations: 4 kB / 0.5424 GB, free: 8.082 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/0.1321, allocations: 2.4 MB / 0.5447 GB, free: 5.637 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003975/0.1325, allocations: 203.4 kB / 0.5449 GB, free: 5.438 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.604e-05/0.1326, allocations: 23.98 kB / 0.5449 GB, free: 5.414 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.1329, allocations: 47.95 kB / 0.545 GB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.133, allocations: 88.39 kB / 0.5451 GB, free: 5.281 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-05/0.133, allocations: 20.25 kB / 0.5451 GB, free: 5.262 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000511/0.1336, allocations: 0.5654 MB / 0.5456 GB, free: 4.703 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1336, allocations: 0 / 0.5456 GB, free: 4.703 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007591/0.1343, allocations: 328 kB / 0.546 GB, free: 4.383 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (inertiaLoad.w,integrator.y,heatCapacitor.T,smpm.inertiaRotor.phi,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 (67): * Single equations (assignments): 64 * 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,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.002463/0.1368, allocations: 2.971 MB / 0.5489 GB, free: 1.355 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.154/0.2908, allocations: 1.715 MB / 0.5505 GB, free: 66.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.2908, allocations: 1.094 kB / 0.5505 GB, free: 66.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.2922, allocations: 1.158 MB / 0.5517 GB, free: 66.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008807/0.2931, allocations: 268.8 kB / 0.5519 GB, free: 66.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/0.3048, allocations: 11.56 MB / 0.5632 GB, free: 61.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006953/0.3055, allocations: 0.9094 MB / 0.5641 GB, free: 61.33 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004664/0.306, allocations: 212.6 kB / 0.5643 GB, free: 61.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003658/0.3064, allocations: 0.5036 MB / 0.5648 GB, free: 60.89 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/0.3064, allocations: 0 / 0.5648 GB, free: 60.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1211/0.4275, allocations: 31.26 MB / 0.5953 GB, free: 34.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.064/8.491, allocations: 9.641 kB / 0.5953 GB, free: 34.47 MB / 410.7 MB " [Timeout remaining time 651] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_ElectricBraking_ElectricBraking_Examples_Rotational_SMPMBraking_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 ../ElectricBraking_ElectricBraking_Examples_Rotational_SMPMBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe 2>&1) [Timeout 52.5] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_fmpy.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_fmpy.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../ElectricBraking_ElectricBraking.Examples.Rotational.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_Rotational_SMPMBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.47647385019809]