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.001318/0.001318, 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.001461/0.001461, 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.9626/0.9626, allocations: 177.2 MB / 202.8 MB, free: 5.73 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.004883/0.004883, allocations: 1.196 MB / 260.4 MB, free: 12.09 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.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: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 383 MB, free: 13.67 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.766e-05/1.908e-05, allocations: 2.281 kB / 383 MB, free: 13.67 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.003674/0.003693, allocations: 3.77 MB / 386.8 MB, free: 9.879 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.005395, allocations: 1.281 MB / 388.1 MB, free: 8.59 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002341/0.005629, allocations: 11.94 kB / 388.1 MB, free: 8.578 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004968/0.006126, allocations: 198.5 kB / 388.3 MB, free: 8.383 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002609/0.006387, allocations: 198.4 kB / 388.5 MB, free: 8.188 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001542/0.006541, allocations: 107.9 kB / 388.6 MB, free: 8.082 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004235/0.006964, allocations: 0.6296 MB / 389.2 MB, free: 7.449 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.007201, allocations: 156.1 kB / 389.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003559/0.007557, allocations: 359.1 kB / 389.7 MB, free: 6.945 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001913/0.007748, allocations: 179.4 kB / 389.9 MB, free: 6.77 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.839e-05/0.007796, allocations: 52 kB / 390 MB, free: 6.719 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.007901, allocations: 75.91 kB / 390 MB, free: 6.645 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.695e-05/0.007958, allocations: 115.5 kB / 390.1 MB, free: 6.531 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.008085, allocations: 195.5 kB / 390.3 MB, free: 6.34 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005247/0.008609, allocations: 0.6269 MB / 391 MB, free: 5.711 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.008613, allocations: 3.938 kB / 391 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.008614, allocations: 0 / 391 MB, free: 5.707 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.008621, allocations: 0 / 391 MB, free: 5.707 MB / 314.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.0008567/0.009478, allocations: 0.7224 MB / 391.7 MB, free: 4.957 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.009523, allocations: 8.031 kB / 391.7 MB, free: 4.949 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.568e-05/0.009599, allocations: 86.7 kB / 391.8 MB, free: 4.855 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.009767, allocations: 72.53 kB / 391.8 MB, free: 4.785 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.01022, allocations: 325.3 kB / 392.2 MB, free: 4.438 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.01025, allocations: 33.38 kB / 392.2 MB, free: 4.406 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.479e-05/0.01033, allocations: 52.52 kB / 392.2 MB, free: 4.355 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000505/0.01084, allocations: 495.8 kB / 392.7 MB, free: 3.844 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.01085, allocations: 192 / 392.7 MB, free: 3.844 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.01088, allocations: 19.94 kB / 392.8 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.01089, allocations: 12 kB / 392.8 MB, free: 3.812 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003548/0.01125, allocations: 275.8 kB / 393 MB, free: 3.543 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.01277, allocations: 1.435 MB / 394.5 MB, free: 2.027 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.0131, allocations: 203.2 kB / 394.7 MB, free: 1.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.01322, allocations: 105.3 kB / 394.8 MB, free: 1.715 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.01324, allocations: 4.234 kB / 394.8 MB, free: 1.711 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.01326, allocations: 34.8 kB / 394.8 MB, free: 1.668 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 1.864e-06/0.01326, allocations: 0 / 394.8 MB, free: 1.668 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001086/0.01435, allocations: 0.6908 MB / 395.5 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.902e-05/0.01438, allocations: 55.41 kB / 395.6 MB, free: 0.875 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002653/0.01464, allocations: 336.5 kB / 395.9 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.01466, allocations: 33.7 kB / 395.9 MB, free: 0.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.01478, allocations: 260.3 kB / 396.2 MB, free: 244 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/0.01483, allocations: 111 kB / 396.3 MB, free: 132 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-05/0.01489, allocations: 65.66 kB / 396.3 MB, free: 60 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.015, allocations: 342.7 kB / 396.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.0151, allocations: 79.97 kB / 396.8 MB, free: 15.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.01524, allocations: 175.1 kB / 396.9 MB, free: 15.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.01549, allocations: 267.4 kB / 397.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.01549, allocations: 0 / 397.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003591/0.01585, allocations: 341.9 kB / 397.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.01587, allocations: 4 kB / 397.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.01587, allocations: 7.984 kB / 397.5 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001117/0.01599, allocations: 20.86 kB / 397.6 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.01614, allocations: 75.91 kB / 397.6 MB, free: 14.67 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007227/0.01686, allocations: 1.275 MB / 398.9 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.01697, allocations: 11.98 kB / 398.9 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.01698, allocations: 16 kB / 398.9 MB, free: 13.25 MB / 330.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.0001474/0.01713, allocations: 161.7 kB / 399.1 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.895e-05/0.01717, allocations: 35.75 kB / 399.1 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.922e-05/0.0172, allocations: 39.95 kB / 399.2 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.01721, allocations: 12.14 kB / 399.2 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.01722, allocations: 0 / 399.2 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.01722, allocations: 0 / 399.2 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000737/0.01796, allocations: 0.715 MB / 399.9 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.01796, allocations: 3.938 kB / 399.9 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.01811, allocations: 51.92 kB / 399.9 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.588e-05/0.01817, allocations: 20.84 kB / 400 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.01818, allocations: 12 kB / 400 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005932/0.01878, allocations: 1.271 MB / 401.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.01878, allocations: 4.031 kB / 401.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000419/0.0192, allocations: 458.6 kB / 401.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.613e-05/0.01927, allocations: 43.84 kB / 401.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.0193, allocations: 8 kB / 401.7 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.01941, allocations: 20.14 kB / 401.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.376e-05/0.01945, allocations: 19.97 kB / 401.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.01946, allocations: 4 kB / 401.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002473/0.01971, allocations: 243 kB / 402 MB, free: 9.938 MB / 330.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01971, allocations: 0 / 402 MB, free: 9.938 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002806/0.01999, allocations: 91.94 kB / 402.1 MB, free: 9.848 MB / 330.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.0005987/0.02059, allocations: 0.9852 MB / 403.1 MB, free: 8.828 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004283/0.02102, allocations: 334.3 kB / 403.4 MB, free: 8.488 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.02102, allocations: 4 kB / 403.4 MB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.02118, allocations: 206.5 kB / 403.6 MB, free: 8.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.02153, allocations: 74.11 kB / 403.7 MB, free: 8.199 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003397/0.02493, allocations: 3.566 MB / 407.3 MB, free: 4.461 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001488/0.02508, allocations: 211.5 kB / 407.5 MB, free: 4.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.0252, allocations: 34.95 kB / 407.5 MB, free: 4.191 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.02533, allocations: 144.5 kB / 407.7 MB, free: 4.047 MB / 330.7 MB Notification: Performance of SimCode: time 1.733e-06/0.02533, allocations: 7.938 kB / 407.7 MB, free: 4.039 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2251/0.2504, allocations: 8.405 MB / 416.1 MB, free: 38.17 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.49/7.74, allocations: 5.562 kB / 416.1 MB, free: 38.17 MB / 330.7 MB " [Timeout remaining time 652] (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: 11.983041321858764]