Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking.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.0009551/0.0009551, allocations: 105.5 kB / 18.95 MB, free: 1.188 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.001065/0.001065, allocations: 216.1 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.927/0.927, allocations: 230.6 MB / 256 MB, free: 9.602 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.004782/0.004782, allocations: 1.603 MB / 314 MB, free: 380 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.EddyCurrentBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Rotational_EddyCurrentBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricBraking.Examples.Rotational.EddyCurrentBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Rotational_EddyCurrentBraking",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.0008966/0.0008966, allocations: 69.25 kB / 436.6 MB, free: 46.38 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06556/0.06646, allocations: 53.77 MB / 490.4 MB, free: 10.54 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.EddyCurrentBraking): time 0.002255/0.06871, allocations: 2.154 MB / 492.5 MB, free: 8.375 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007877/0.0695, allocations: 0.7557 MB / 493.3 MB, free: 7.617 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.657e-05/0.06959, allocations: 7.938 kB / 493.3 MB, free: 7.609 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002327/0.06982, allocations: 63.55 kB / 493.4 MB, free: 7.547 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.829e-05/0.06989, allocations: 59.5 kB / 493.4 MB, free: 7.488 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.07006, allocations: 67.77 kB / 493.5 MB, free: 7.422 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001771/0.07023, allocations: 195.1 kB / 493.7 MB, free: 7.23 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.07034, allocations: 34.02 kB / 493.7 MB, free: 7.195 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.07046, allocations: 87.7 kB / 493.8 MB, free: 7.109 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.247e-05/0.07055, allocations: 71.56 kB / 493.9 MB, free: 7.039 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.07057, allocations: 12 kB / 493.9 MB, free: 7.027 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.765e-05/0.07063, allocations: 28 kB / 493.9 MB, free: 7 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.314e-05/0.07065, allocations: 43.83 kB / 494 MB, free: 6.957 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.455e-05/0.0707, allocations: 63.67 kB / 494 MB, free: 6.895 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.07089, allocations: 191.2 kB / 494.2 MB, free: 6.707 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.07089, allocations: 0 / 494.2 MB, free: 6.707 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.07089, allocations: 3.938 kB / 494.2 MB, free: 6.703 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.0709, allocations: 0 / 494.2 MB, free: 6.703 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004505/0.07135, allocations: 405.4 kB / 494.6 MB, free: 6.277 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.07138, allocations: 12.03 kB / 494.6 MB, free: 6.266 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.508e-05/0.07142, allocations: 54.73 kB / 494.7 MB, free: 6.203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.07152, allocations: 32.83 kB / 494.7 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.07172, allocations: 174.9 kB / 494.9 MB, free: 5.973 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.07173, allocations: 16.31 kB / 494.9 MB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.07176, allocations: 20.11 kB / 494.9 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001672/0.07193, allocations: 148.2 kB / 495.1 MB, free: 5.777 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.07194, allocations: 0 / 495.1 MB, free: 5.777 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.07195, allocations: 4 kB / 495.1 MB, free: 5.773 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.07196, allocations: 8 kB / 495.1 MB, free: 5.766 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000107/0.07206, allocations: 75.91 kB / 495.1 MB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006219/0.07268, allocations: 0.6509 MB / 495.8 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.07281, allocations: 78.61 kB / 495.9 MB, free: 4.898 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.568e-05/0.07284, allocations: 33.02 kB / 495.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.968e-06/0.07285, allocations: 0 / 495.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.663e-05/0.07287, allocations: 38.56 kB / 495.9 MB, free: 4.816 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 9.01e-07/0.07287, allocations: 4 kB / 495.9 MB, free: 4.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001814/0.07305, allocations: 105.6 kB / 496 MB, free: 4.703 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.288e-05/0.07308, allocations: 51.41 kB / 496.1 MB, free: 4.641 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.0732, allocations: 179.3 kB / 496.3 MB, free: 4.453 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.07321, allocations: 33.7 kB / 496.3 MB, free: 4.414 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.732e-05/0.07326, allocations: 135.8 kB / 496.4 MB, free: 4.277 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.09e-05/0.07329, allocations: 35.69 kB / 496.5 MB, free: 4.242 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.428e-05/0.07332, allocations: 37.7 kB / 496.5 MB, free: 4.199 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.125e-05/0.0734, allocations: 326.8 kB / 496.8 MB, free: 3.871 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.448e-05/0.07344, allocations: 28 kB / 496.9 MB, free: 3.844 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.456e-05/0.0735, allocations: 73.98 kB / 496.9 MB, free: 3.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.16e-05/0.07359, allocations: 105.9 kB / 497 MB, free: 3.625 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.07359, allocations: 3.938 kB / 497 MB, free: 3.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001296/0.07372, allocations: 141.5 kB / 497.2 MB, free: 3.477 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.07374, allocations: 8 kB / 497.2 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.07374, allocations: 3.938 kB / 497.2 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.07375, allocations: 4 kB / 497.2 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.326e-05/0.07384, allocations: 32.36 kB / 497.2 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.07385, allocations: 4 kB / 497.2 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.157e-05/0.07389, allocations: 15.88 kB / 497.2 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.0739, allocations: 8 kB / 497.2 MB, free: 3.402 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.074, allocations: 133.7 kB / 497.4 MB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.942e-05/0.07402, allocations: 20.06 kB / 497.4 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.07405, allocations: 13.41 kB / 497.4 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.07405, allocations: 4 kB / 497.4 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.07405, allocations: 0 / 497.4 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.07406, allocations: 3.984 kB / 497.4 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001386/0.0742, allocations: 184.7 kB / 497.6 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.0742, allocations: 0 / 497.6 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.923e-05/0.07428, allocations: 23.98 kB / 497.6 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.07428, allocations: 3.938 kB / 497.6 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.966e-06/0.07429, allocations: 4 kB / 497.6 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.07429, allocations: 7.938 kB / 497.6 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.07429, allocations: 4 kB / 497.6 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/0.07447, allocations: 231.3 kB / 497.9 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.66e-05/0.07448, allocations: 15.84 kB / 497.9 MB, free: 2.691 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.0745, allocations: 4 kB / 497.9 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.308e-05/0.07454, allocations: 4 kB / 497.9 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.577e-05/0.07456, allocations: 8.031 kB / 497.9 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.07456, allocations: 0 / 497.9 MB, free: 2.676 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.31e-05/0.07462, allocations: 127.2 kB / 498 MB, free: 2.551 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07462, allocations: 0 / 498 MB, free: 2.551 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001709/0.07479, allocations: 43.89 kB / 498.1 MB, free: 2.508 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaLoad.w,integrator.y,heatCapacitor.T,eddyCurrentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003421/0.07513, allocations: 0.7572 MB / 498.8 MB, free: 1.727 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.07525, allocations: 75.91 kB / 498.9 MB, free: 1.652 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.07525, allocations: 0 / 498.9 MB, free: 1.652 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.819e-05/0.07528, allocations: 31.92 kB / 498.9 MB, free: 1.621 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.07551, allocations: 23.98 kB / 499 MB, free: 1.598 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.07713, allocations: 2.167 MB / 0.4894 GB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.161e-05/0.07719, allocations: 108 kB / 0.4895 GB, free: 15.19 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.214e-05/0.07724, allocations: 13.42 kB / 0.4895 GB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.692e-05/0.07729, allocations: 51.36 kB / 0.4895 GB, free: 15.12 MB / 362.7 MB Notification: Performance of SimCode: time 3.7e-07/0.07729, allocations: 0 / 0.4895 GB, free: 15.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07205/0.1493, allocations: 3.915 MB / 0.4934 GB, free: 11.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.099/6.248, allocations: 2.5 kB / 0.4934 GB, free: 11.36 MB / 362.7 MB " [Timeout remaining time 654] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_ElectricBraking_ElectricBraking_Examples_Rotational_EddyCurrentBraking_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 ../ElectricBraking_ElectricBraking_Examples_Rotational_EddyCurrentBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking.pipe 2>&1) [Timeout 52.5] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking_fmpy.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking_fmpy.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking_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_EddyCurrentBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Rotational.EddyCurrentBraking_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.541594768874347]