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.001281/0.001281, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001385/0.001385, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.406/1.406, allocations: 230.6 MB / 254.1 MB, free: 15.05 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.00154/0.00154, allocations: 51.92 kB / 373 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1114, allocations: 53.33 MB / 426.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004876/0.1163, allocations: 2.907 MB / 429.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.1178, allocations: 0.8845 MB / 430.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.118, allocations: 7.938 kB / 430.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.1182, allocations: 55.44 kB / 430.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003083/0.1185, allocations: 127.2 kB / 430.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.1189, allocations: 223.6 kB / 430.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2106/0.3294, allocations: 0.5295 MB / 431.1 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.3297, allocations: 79.72 kB / 431.1 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003967/0.3301, allocations: 202.5 kB / 431.3 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003154/0.3304, allocations: 227.7 kB / 431.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.498e-05/0.3305, allocations: 49.14 kB / 431.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.334e-05/0.3306, allocations: 49.59 kB / 431.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.642e-05/0.3307, allocations: 96.06 kB / 431.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.3309, allocations: 207.8 kB / 432 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004955/0.3314, allocations: 0.4897 MB / 432.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3314, allocations: 4.906 kB / 432.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3314, allocations: 3.844 kB / 432.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.3314, allocations: 0 / 432.5 MB, free: 7.16 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.001527/0.3329, allocations: 0.7507 MB / 433.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3329, allocations: 9.438 kB / 433.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.838e-05/0.333, allocations: 54.59 kB / 433.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.129e-05/0.3331, allocations: 42.28 kB / 433.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000416/0.3335, allocations: 343.2 kB / 433.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.445e-05/0.3336, allocations: 76.98 kB / 433.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.404e-05/0.3336, allocations: 27.59 kB / 433.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004216/0.334, allocations: 290.2 kB / 434 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.3341, allocations: 5.922 kB / 434 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.3341, allocations: 13.41 kB / 434 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.3341, allocations: 5.625 kB / 434.1 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003282/0.3344, allocations: 165.9 kB / 434.2 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.337, allocations: 1.466 MB / 435.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001937/0.3372, allocations: 102.2 kB / 435.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.3373, allocations: 52.83 kB / 435.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.3373, allocations: 2 kB / 435.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.3373, allocations: 36.36 kB / 435.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.3373, allocations: 3.188 kB / 435.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.00302/0.3404, allocations: 1.075 MB / 436.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/0.3404, allocations: 112.2 kB / 437.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003582/0.3408, allocations: 324.2 kB / 437.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.399e-05/0.3408, allocations: 31.45 kB / 437.4 MB, free: 4.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.3409, allocations: 213.4 kB / 437.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.146e-05/0.341, allocations: 47.25 kB / 437.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.3411, allocations: 77.16 kB / 437.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.219e-05/0.3412, allocations: 335.2 kB / 438.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.3415, allocations: 154.3 kB / 438.2 MB, free: 3.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003984/0.3419, allocations: 251.6 kB / 438.5 MB, free: 3.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006304/0.3426, allocations: 346.4 kB / 438.8 MB, free: 3.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3426, allocations: 3.375 kB / 438.8 MB, free: 3.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009401/0.352, allocations: 1.31 MB / 440.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.352, allocations: 9.781 kB / 440.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.352, allocations: 6.375 kB / 440.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01085/0.3629, allocations: 1.156 MB / 441.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005262/0.3634, allocations: 69.8 kB / 441.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/0.3739, allocations: 5.342 MB / 446.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006398/0.3745, allocations: 41.05 kB / 446.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.283e-05/0.3746, allocations: 15.52 kB / 446.7 MB, free: 15.8 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.0002378/0.3748, allocations: 145.5 kB / 446.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.735e-05/0.3749, allocations: 30.17 kB / 446.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.375, allocations: 27.59 kB / 446.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.375, allocations: 2.844 kB / 446.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.375, allocations: 1.219 kB / 446.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.375, allocations: 5.625 kB / 447 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.3762, allocations: 0.7496 MB / 447.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3762, allocations: 1.281 kB / 447.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003651/0.3766, allocations: 53.5 kB / 447.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.3766, allocations: 1.375 kB / 447.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.3766, allocations: 9.984 kB / 447.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3766, allocations: 1.125 kB / 447.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3766, allocations: 4 kB / 447.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009353/0.3776, allocations: 0.5148 MB / 448.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.3777, allocations: 107.7 kB / 448.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.3777, allocations: 9.766 kB / 448.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003993/0.3781, allocations: 31.39 kB / 448.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.093e-05/0.3782, allocations: 12.3 kB / 448.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.3782, allocations: 8.547 kB / 448.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002625/0.3785, allocations: 223.7 kB / 448.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3785, allocations: 0 / 448.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005687/0.3791, allocations: 97.66 kB / 448.8 MB, free: 14.52 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.001277/0.3803, allocations: 1.066 MB / 449.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002229/0.3826, allocations: 0.7352 MB / 450.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3826, allocations: 0.9062 kB / 450.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002596/0.3828, allocations: 96.44 kB / 450.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005908/0.3834, allocations: 70.44 kB / 450.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02271/0.4061, allocations: 5.209 MB / 455.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.4066, allocations: 0.7769 MB / 456.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002677/0.4068, allocations: 29.62 kB / 456.7 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.407, allocations: 115.9 kB / 456.9 MB, free: 9.918 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.407, allocations: 0 / 456.9 MB, free: 9.918 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05728/0.4643, allocations: 11.77 MB / 468.6 MB, free: 4.148 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.3, allocations: 9.562 kB / 468.6 MB, free: 4.141 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --stepSize=1e-07 --timeout=50 --tolerance=1e-06 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.581786649068817] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 12.407275878125802 12.43364596 12.09734534 Calling exit ...