Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.007787/0.007787, allocations: 110.7 kB / 21.97 MB, free: 5.25 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.001685/0.001685, allocations: 206.5 kB / 25.27 MB, free: 3.238 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 207.6 MB / 236 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 52.36 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2424, allocations: 49.17 MB / 397.1 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006463/0.2489, allocations: 7.75 MB / 404.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02101/0.2699, allocations: 18.6 MB / 423.5 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.2713, allocations: 94.84 kB / 423.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002447/0.2737, allocations: 0.8421 MB / 424.4 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006426/0.2802, allocations: 1.804 MB / 426.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004999/0.2852, allocations: 1.301 MB / 427.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005649/0.2908, allocations: 3.214 MB / 430.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002951/0.2911, allocations: 133.4 kB / 430.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007608/0.2919, allocations: 0.5385 MB / 431.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000656/0.2925, allocations: 0.5508 MB / 432 MB, free: 180 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.424e-05/0.2926, allocations: 41.5 kB / 432 MB, free: 180 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003567/0.2962, allocations: 1.133 MB / 433.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.2963, allocations: 170.8 kB / 433.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000634/0.297, allocations: 0.6831 MB / 434 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003392/0.3004, allocations: 2.241 MB / 436.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3004, allocations: 0 / 436.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3004, allocations: 0 / 436.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.209e-05/0.3004, allocations: 0 / 436.2 MB, free: 12.25 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003072/0.3035, allocations: 2.002 MB / 438.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.3035, allocations: 19.97 kB / 438.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.965e-05/0.3035, allocations: 4.656 kB / 438.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.061e-05/0.3036, allocations: 70.53 kB / 438.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002334/0.3038, allocations: 206.7 kB / 438.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/0.3058, allocations: 1.261 MB / 439.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.3058, allocations: 20.66 kB / 439.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.964e-05/0.3059, allocations: 28 kB / 439.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009132/0.3068, allocations: 433.8 kB / 440.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.3068, allocations: 0 / 440.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.379e-05/0.3068, allocations: 8 kB / 440.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.3069, allocations: 8 kB / 440.3 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.3079, allocations: 490.2 kB / 440.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002688/0.3106, allocations: 1.57 MB / 442.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008993/0.3115, allocations: 347.3 kB / 442.7 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007012/0.3122, allocations: 369.9 kB / 443 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01297/0.3252, allocations: 7.043 MB / 450.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000635/0.3258, allocations: 263.1 kB / 450.3 MB, free: 13.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.034e-06/0.3258, allocations: 0 / 450.3 MB, free: 13.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002072/0.3279, allocations: 0.7703 MB / 451.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.3279, allocations: 55.41 kB / 451.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/0.3297, allocations: 1.468 MB / 452.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.3297, allocations: 29.7 kB / 452.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006381/0.3304, allocations: 0.7311 MB / 453.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.677e-05/0.3305, allocations: 99.16 kB / 453.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001789/0.3307, allocations: 134 kB / 453.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3308, allocations: 325.9 kB / 453.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004388/0.3312, allocations: 164.9 kB / 454.1 MB, free: 9.883 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005838/0.3318, allocations: 355.6 kB / 454.4 MB, free: 9.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.3328, allocations: 0.5334 MB / 455 MB, free: 8.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.3329, allocations: 4 kB / 455 MB, free: 8.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001553/0.3344, allocations: 0.756 MB / 455.7 MB, free: 8.047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.3344, allocations: 8 kB / 455.7 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-05/0.3345, allocations: 43.98 kB / 455.8 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003391/0.3348, allocations: 137.2 kB / 455.9 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004045/0.3353, allocations: 107.8 kB / 456 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006715/0.3359, allocations: 0.6812 MB / 456.7 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005566/0.3365, allocations: 71.62 kB / 456.8 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.467e-05/0.3365, allocations: 32 kB / 456.8 MB, free: 6.945 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004579/0.337, allocations: 281.6 kB / 457.1 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.3372, allocations: 198.7 kB / 457.3 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.339, allocations: 0.7463 MB / 458 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.339, allocations: 4 kB / 458 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.339, allocations: 0 / 458 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.339, allocations: 7.922 kB / 458 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.3413, allocations: 1.283 MB / 459.3 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.137e-05/0.3414, allocations: 32 kB / 459.3 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000239/0.3416, allocations: 47.89 kB / 459.4 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002606/0.3419, allocations: 124.8 kB / 459.5 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.3419, allocations: 16 kB / 459.5 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006184/0.3425, allocations: 0.6773 MB / 460.2 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3425, allocations: 0 / 460.2 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.3439, allocations: 0.7249 MB / 460.9 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004337/0.3443, allocations: 212.6 kB / 461.1 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.3444, allocations: 4 kB / 461.1 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004169/0.3449, allocations: 27.97 kB / 461.2 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.345, allocations: 43.94 kB / 461.2 MB, free: 2.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.585e-05/0.345, allocations: 24.12 kB / 461.2 MB, free: 2.363 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001252/0.3463, allocations: 0.9653 MB / 462.2 MB, free: 1.379 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3463, allocations: 0 / 462.2 MB, free: 1.379 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008928/0.3472, allocations: 335.6 kB / 462.5 MB, free: 1.051 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002533/0.3497, allocations: 1.741 MB / 464.3 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.351, allocations: 0.5044 MB / 464.8 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.351, allocations: 3.938 kB / 464.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006401/0.3517, allocations: 275.2 kB / 465 MB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009656/0.3526, allocations: 267.1 kB / 465.3 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/0.3656, allocations: 9.05 MB / 474.3 MB, free: 4.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007543/0.3663, allocations: 1.145 MB / 475.5 MB, free: 3.602 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005461/0.3669, allocations: 203.9 kB / 475.7 MB, free: 3.398 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000642/0.3675, allocations: 0.5657 MB / 476.2 MB, free: 2.832 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3675, allocations: 0 / 476.2 MB, free: 2.832 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07293/0.4404, allocations: 36.01 MB / 0.5003 GB, free: 14.72 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.93/15.37, allocations: 15.84 kB / 0.5003 GB, free: 14.7 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --stepSize=5.0025e-15 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.74817197700031] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 15.5586554070469 15.572354043 15.269023718 Calling exit ...