Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.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.001748/0.001748, allocations: 119.6 kB / 20.44 MB, free: 1.297 MB / 14.72 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.002202/0.002202, allocations: 214.5 kB / 23.74 MB, free: 4.527 MB / 14.72 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 1.452/1.452, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 51.92 kB / 377.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3136, allocations: 53.36 MB / 431.2 MB, free: 6.801 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004326/0.3179, allocations: 2.922 MB / 434.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.3194, allocations: 0.9037 MB / 435 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.3196, allocations: 4 kB / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.3197, allocations: 55.44 kB / 435 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002914/0.32, allocations: 123.1 kB / 435.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003602/0.3204, allocations: 231.5 kB / 435.4 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005803/0.321, allocations: 0.5334 MB / 435.9 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.3212, allocations: 79.58 kB / 436 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.3214, allocations: 203.4 kB / 436.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003248/0.3217, allocations: 227.1 kB / 436.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.521e-05/0.3218, allocations: 48 kB / 436.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.815e-05/0.3218, allocations: 48 kB / 436.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.3219, allocations: 99.61 kB / 436.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001885/0.3221, allocations: 203.1 kB / 436.8 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005276/0.3227, allocations: 0.5023 MB / 437.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3227, allocations: 0 / 437.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.3227, allocations: 0 / 437.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.3227, allocations: 0 / 437.3 MB, free: 0.6328 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001675/0.3244, allocations: 0.6688 MB / 438 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3244, allocations: 8.031 kB / 438 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.987e-05/0.3245, allocations: 62.72 kB / 438 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.783e-05/0.3245, allocations: 40.7 kB / 438.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004776/0.325, allocations: 277.2 kB / 438.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000146/0.3252, allocations: 135.9 kB / 438.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.3252, allocations: 28.38 kB / 438.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004631/0.3257, allocations: 286.9 kB / 438.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.3257, allocations: 3.953 kB / 438.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.3257, allocations: 16 kB / 438.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.3257, allocations: 4 kB / 438.8 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003597/0.3261, allocations: 161.3 kB / 439 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002851/0.329, allocations: 1.43 MB / 440.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002114/0.3292, allocations: 109.2 kB / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.3293, allocations: 45.83 kB / 440.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.3293, allocations: 3.938 kB / 440.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.3293, allocations: 30.56 kB / 440.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.3293, allocations: 4 kB / 440.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003064/0.3324, allocations: 0.9253 MB / 441.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.87e-05/0.3325, allocations: 110.8 kB / 441.6 MB, free: 12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000356/0.3328, allocations: 320.5 kB / 441.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.976e-05/0.3329, allocations: 25.7 kB / 442 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.333, allocations: 216.4 kB / 442.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.3331, allocations: 47.59 kB / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.3332, allocations: 77.66 kB / 442.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3334, allocations: 342.7 kB / 442.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.3337, allocations: 151.9 kB / 442.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.3341, allocations: 254.9 kB / 443 MB, free: 10.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006365/0.3347, allocations: 352.4 kB / 443.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3347, allocations: 4 kB / 443.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009772/0.3445, allocations: 1.31 MB / 444.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.262e-05/0.3446, allocations: 4 kB / 444.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.3446, allocations: 4 kB / 444.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01118/0.3558, allocations: 1.153 MB / 445.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004724/0.3562, allocations: 79.86 kB / 445.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/0.3676, allocations: 5.126 MB / 451.1 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005822/0.3682, allocations: 39.91 kB / 451.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.024e-05/0.3683, allocations: 23.97 kB / 451.1 MB, free: 2.148 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (integrator2.local_reset,integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,1), (4,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002046/0.3685, allocations: 149.7 kB / 451.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.747e-05/0.3686, allocations: 31.81 kB / 451.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.3686, allocations: 26.61 kB / 451.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3686, allocations: 4 kB / 451.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.3686, allocations: 0 / 451.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3686, allocations: 7.875 kB / 451.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.3698, allocations: 0.7231 MB / 452.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3698, allocations: 0 / 452.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003738/0.3702, allocations: 51.92 kB / 452.1 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.3702, allocations: 3.938 kB / 452.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.3702, allocations: 11.98 kB / 452.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3702, allocations: 0 / 452.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3702, allocations: 0 / 452.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000841/0.371, allocations: 0.5141 MB / 452.6 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.011e-05/0.3711, allocations: 31.83 kB / 452.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.3711, allocations: 7.938 kB / 452.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.3715, allocations: 32.03 kB / 452.7 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.104e-05/0.3716, allocations: 15.97 kB / 452.7 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.3716, allocations: 7.984 kB / 452.7 MB, free: 468 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002401/0.3719, allocations: 223.1 kB / 452.9 MB, free: 248 kB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3719, allocations: 0 / 452.9 MB, free: 248 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004906/0.3723, allocations: 96 kB / 453 MB, free: 152 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator2.y,integrator1.y) * 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 (13): * Single equations (assignments): 13 * 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.00124/0.3736, allocations: 1.062 MB / 454.1 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002057/0.3756, allocations: 0.7393 MB / 454.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3756, allocations: 0 / 454.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002444/0.3759, allocations: 91.88 kB / 454.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005911/0.3765, allocations: 82.27 kB / 455 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02273/0.3992, allocations: 5.209 MB / 460.2 MB, free: 8.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.3997, allocations: 0.7794 MB / 461 MB, free: 7.965 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002121/0.3999, allocations: 30.5 kB / 461 MB, free: 7.938 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.4001, allocations: 111.4 kB / 461.1 MB, free: 7.828 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4001, allocations: 4 kB / 461.1 MB, free: 7.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04757/0.4477, allocations: 11.88 MB / 473 MB, free: 12.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.21, allocations: 19.23 kB / 473 MB, free: 12.09 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-07 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.710129463001067] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 13.327271837002627 13.346095871 13.019186447 Calling exit ...