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.001611/0.001611, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.00161/0.00161, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.469/1.469, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.001505/0.001505, allocations: 51.92 kB / 377.8 MB, free: 3.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2433, allocations: 53.37 MB / 431.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.00426/0.2476, allocations: 2.914 MB / 434.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.2491, allocations: 0.904 MB / 435 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.2493, allocations: 4 kB / 435 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00019/0.2495, allocations: 55.39 kB / 435 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003071/0.2498, allocations: 119.2 kB / 435.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.2501, allocations: 231.6 kB / 435.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005779/0.2507, allocations: 0.5373 MB / 435.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.2509, allocations: 79.58 kB / 436 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002307/0.2511, allocations: 203.3 kB / 436.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003187/0.2514, allocations: 227.1 kB / 436.4 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.806e-05/0.2515, allocations: 44 kB / 436.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.947e-05/0.2516, allocations: 48 kB / 436.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.283e-05/0.2517, allocations: 103.6 kB / 436.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.2519, allocations: 203.1 kB / 436.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005587/0.2524, allocations: 0.5023 MB / 437.3 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2524, allocations: 4 kB / 437.3 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2524, allocations: 0 / 437.3 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.2524, allocations: 0 / 437.3 MB, free: 0.6758 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.001716/0.2542, allocations: 0.6688 MB / 438 MB, free: 15.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.2542, allocations: 8.031 kB / 438 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.213e-05/0.2543, allocations: 62.67 kB / 438 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.395e-05/0.2544, allocations: 44.7 kB / 438.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004772/0.2548, allocations: 277.2 kB / 438.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.255, allocations: 131.9 kB / 438.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.427e-05/0.255, allocations: 28.38 kB / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004486/0.2555, allocations: 282.9 kB / 438.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.2555, allocations: 11.94 kB / 438.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.2555, allocations: 8 kB / 438.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.2555, allocations: 12 kB / 438.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003643/0.2559, allocations: 165.2 kB / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002828/0.2587, allocations: 1.43 MB / 440.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/0.2589, allocations: 97.23 kB / 440.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.259, allocations: 53.75 kB / 440.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/0.2591, allocations: 0 / 440.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.2591, allocations: 42.56 kB / 440.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.2591, allocations: 0 / 440.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003093/0.2622, allocations: 0.9171 MB / 441.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.078e-05/0.2623, allocations: 110.8 kB / 441.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003591/0.2626, allocations: 324.5 kB / 441.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.113e-05/0.2627, allocations: 33.7 kB / 442 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.2628, allocations: 204.4 kB / 442.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/0.2629, allocations: 51.59 kB / 442.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.263, allocations: 69.66 kB / 442.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2632, allocations: 338.8 kB / 442.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003497/0.2635, allocations: 163.8 kB / 442.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004237/0.2639, allocations: 242.9 kB / 443 MB, free: 10.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006445/0.2646, allocations: 361 kB / 443.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2646, allocations: 0 / 443.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00981/0.2744, allocations: 1.306 MB / 444.7 MB, free: 8.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.2744, allocations: 8 kB / 444.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.2744, allocations: 7.938 kB / 444.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01102/0.2854, allocations: 1.161 MB / 445.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004587/0.2859, allocations: 63.88 kB / 445.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/0.2975, allocations: 5.14 MB / 451.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005927/0.2981, allocations: 43.84 kB / 451.1 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.2981, allocations: 15.98 kB / 451.1 MB, free: 2.195 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.0002075/0.2983, allocations: 145.8 kB / 451.3 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.51e-05/0.2984, allocations: 35.73 kB / 451.3 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.885e-05/0.2985, allocations: 30.62 kB / 451.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.2985, allocations: 3.984 kB / 451.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.2985, allocations: 0 / 451.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.2985, allocations: 7.938 kB / 451.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.2997, allocations: 0.7191 MB / 452.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.2997, allocations: 0 / 452.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003888/0.3001, allocations: 51.95 kB / 452.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.3001, allocations: 3.938 kB / 452.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.3001, allocations: 8.109 kB / 452.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.3001, allocations: 4 kB / 452.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.3001, allocations: 4.078 kB / 452.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008581/0.301, allocations: 0.5219 MB / 452.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.609e-05/0.301, allocations: 27.8 kB / 452.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.88e-05/0.3011, allocations: 7.938 kB / 452.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004192/0.3015, allocations: 23.98 kB / 452.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.948e-05/0.3015, allocations: 11.97 kB / 452.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.3016, allocations: 12.05 kB / 452.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002436/0.3018, allocations: 223.1 kB / 452.9 MB, free: 296 kB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3018, allocations: 0 / 452.9 MB, free: 296 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005633/0.3024, allocations: 100 kB / 453 MB, free: 196 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.001204/0.3036, allocations: 1.061 MB / 454.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002097/0.3057, allocations: 0.7379 MB / 454.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3057, allocations: 0 / 454.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002491/0.3059, allocations: 95.88 kB / 454.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005815/0.3065, allocations: 77.8 kB / 455 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02316/0.3297, allocations: 5.202 MB / 460.2 MB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004139/0.3301, allocations: 0.7756 MB / 461 MB, free: 8.016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002195/0.3303, allocations: 34.28 kB / 461 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/0.3305, allocations: 107.4 kB / 461.1 MB, free: 7.879 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3305, allocations: 0 / 461.1 MB, free: 7.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04325/0.3737, allocations: 11.9 MB / 473 MB, free: 12.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.45, allocations: 8.359 kB / 473 MB, free: 12.13 MB / 382.1 MB " [Timeout remaining time 646] (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: 15.839312807889655] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 13.573076470056549 13.599371706 13.342885379 Calling exit ...