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.001803/0.001803, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001971/0.001971, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.57/1.57, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001547/0.001547, allocations: 47.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1084, allocations: 53.33 MB / 426.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.00449/0.1129, allocations: 2.894 MB / 429.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002107/0.115, allocations: 0.9078 MB / 430.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000265/0.1153, allocations: 7.938 kB / 430.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002482/0.1156, allocations: 51.45 kB / 430.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004574/0.116, allocations: 123.1 kB / 430.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005402/0.1165, allocations: 227.7 kB / 430.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006998/0.1172, allocations: 0.5257 MB / 431.1 MB, free: 20 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2147/0.3319, allocations: 78.72 kB / 431.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005565/0.3325, allocations: 205.6 kB / 431.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000393/0.3329, allocations: 225.7 kB / 431.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.333, allocations: 47.62 kB / 431.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001002/0.3331, allocations: 47.28 kB / 431.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.3332, allocations: 99.09 kB / 431.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002332/0.3334, allocations: 207.2 kB / 431.9 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006649/0.3341, allocations: 0.4955 MB / 432.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3341, allocations: 0 / 432.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3341, allocations: 0.875 kB / 432.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.3341, allocations: 3.938 kB / 432.4 MB, free: 7.609 MB / 350.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.001684/0.3358, allocations: 0.7424 MB / 433.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.3358, allocations: 11.88 kB / 433.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.194e-05/0.3359, allocations: 64.69 kB / 433.3 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.833e-05/0.336, allocations: 41.83 kB / 433.3 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005043/0.3365, allocations: 332.9 kB / 433.6 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.3366, allocations: 77.86 kB / 433.7 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-05/0.3367, allocations: 35.23 kB / 433.7 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.3371, allocations: 284 kB / 434 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.3371, allocations: 7.234 kB / 434 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.3372, allocations: 10.28 kB / 434 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.3372, allocations: 8.312 kB / 434 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003492/0.3375, allocations: 163.9 kB / 434.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.3403, allocations: 1.464 MB / 435.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.3406, allocations: 107.1 kB / 435.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.3407, allocations: 47.09 kB / 435.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.3407, allocations: 1.906 kB / 435.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.3407, allocations: 44.52 kB / 435.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.3407, allocations: 0 / 435.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003189/0.3439, allocations: 1.074 MB / 436.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.344, allocations: 112.7 kB / 437 MB, free: 5.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003755/0.3444, allocations: 325.4 kB / 437.4 MB, free: 4.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.3444, allocations: 30.55 kB / 437.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.3445, allocations: 205.7 kB / 437.6 MB, free: 4.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.3446, allocations: 52.42 kB / 437.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.3447, allocations: 72.67 kB / 437.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.537e-05/0.3448, allocations: 340.8 kB / 438.1 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000364/0.3452, allocations: 159.8 kB / 438.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003886/0.3455, allocations: 244.2 kB / 438.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006099/0.3462, allocations: 352 kB / 438.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3462, allocations: 1.281 kB / 438.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009734/0.3559, allocations: 1.321 MB / 440.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.3559, allocations: 5.594 kB / 440.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.3559, allocations: 4.266 kB / 440.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01119/0.3671, allocations: 1.151 MB / 441.3 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005421/0.3677, allocations: 69.08 kB / 441.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/0.3782, allocations: 5.35 MB / 446.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006264/0.3788, allocations: 40.16 kB / 446.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-05/0.3789, allocations: 17.47 kB / 446.7 MB, free: 15.98 MB / 366.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.0002194/0.3791, allocations: 143.9 kB / 446.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.49e-05/0.3792, allocations: 28.28 kB / 446.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.892e-05/0.3792, allocations: 33.91 kB / 446.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.3792, allocations: 2.281 kB / 447 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.3792, allocations: 1.125 kB / 447 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3792, allocations: 6.281 kB / 447 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001226/0.3805, allocations: 0.7401 MB / 447.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3805, allocations: 4.688 kB / 447.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000369/0.3808, allocations: 52.75 kB / 447.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3808, allocations: 2.328 kB / 447.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.3809, allocations: 9.281 kB / 447.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.3809, allocations: 1.5 kB / 447.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3809, allocations: 1.344 kB / 447.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008862/0.3817, allocations: 0.5211 MB / 448.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.767e-05/0.3818, allocations: 106.5 kB / 448.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.709e-05/0.3819, allocations: 5.719 kB / 448.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004041/0.3823, allocations: 28.77 kB / 448.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.243e-05/0.3824, allocations: 12.11 kB / 448.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.3824, allocations: 15.3 kB / 448.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002531/0.3826, allocations: 223.3 kB / 448.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3826, allocations: 0 / 448.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000553/0.3832, allocations: 98.75 kB / 448.8 MB, free: 14.68 MB / 366.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.001272/0.3845, allocations: 1.062 MB / 449.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002152/0.3866, allocations: 0.7349 MB / 450.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3866, allocations: 1.062 kB / 450.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002596/0.3869, allocations: 96.09 kB / 450.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005958/0.3875, allocations: 80.27 kB / 450.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02258/0.4101, allocations: 5.204 MB / 455.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004754/0.4105, allocations: 0.7757 MB / 456.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002724/0.4108, allocations: 32.17 kB / 456.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/0.411, allocations: 109.5 kB / 456.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of SimCode: time 1.423e-06/0.411, allocations: 0 / 456.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04442/0.4554, allocations: 11.78 MB / 468.6 MB, free: 4.309 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.32, allocations: 13.28 kB / 468.6 MB, free: 4.297 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.938786238999455] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 12.4194810110057 12.444356521 12.105175184 Calling exit ...