Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001404/0.001404, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001508/0.001508, allocations: 214.8 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 230.5 MB / 258.2 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 59.89 kB / 378.5 MB, free: 2.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2914, allocations: 53.41 MB / 431.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008285/0.2997, allocations: 6.915 MB / 438.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0216/0.3213, allocations: 16.7 MB / 455.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00135/0.3226, allocations: 90.94 kB / 455.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002404/0.325, allocations: 0.7611 MB / 456.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006238/0.3313, allocations: 1.823 MB / 458.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004675/0.336, allocations: 1.324 MB / 459.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005847/0.3418, allocations: 3.311 MB / 462.8 MB, free: 7.426 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004058/0.3422, allocations: 136.8 kB / 463 MB, free: 7.266 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009954/0.3432, allocations: 0.5873 MB / 463.5 MB, free: 6.676 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007451/0.344, allocations: 0.559 MB / 464.1 MB, free: 6.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.3441, allocations: 40 kB / 464.1 MB, free: 6.074 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00355/0.3476, allocations: 1.21 MB / 465.4 MB, free: 4.863 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000209/0.3478, allocations: 166.8 kB / 465.5 MB, free: 4.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006388/0.3485, allocations: 0.5045 MB / 466 MB, free: 4.191 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003552/0.352, allocations: 2.237 MB / 468.3 MB, free: 1.945 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.352, allocations: 0 / 468.3 MB, free: 1.945 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.352, allocations: 0 / 468.3 MB, free: 1.945 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.352, allocations: 0 / 468.3 MB, free: 1.945 MB / 366.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.00323/0.3553, allocations: 1.999 MB / 470.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.3553, allocations: 8.031 kB / 470.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.11e-05/0.3553, allocations: 12.66 kB / 470.3 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.547e-05/0.3554, allocations: 74.52 kB / 470.3 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002414/0.3557, allocations: 202.7 kB / 470.5 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00196/0.3576, allocations: 1.257 MB / 471.8 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.3577, allocations: 20.66 kB / 471.8 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.661e-05/0.3578, allocations: 27.98 kB / 471.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009652/0.3587, allocations: 433.6 kB / 472.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.3587, allocations: 0 / 472.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.568e-05/0.3588, allocations: 15.94 kB / 472.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.627e-05/0.3588, allocations: 15.98 kB / 472.3 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.3599, allocations: 478.3 kB / 472.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00269/0.3626, allocations: 1.477 MB / 474.2 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009095/0.3635, allocations: 342.7 kB / 474.6 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007168/0.3642, allocations: 373.8 kB / 474.9 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01275/0.3769, allocations: 6.988 MB / 481.9 MB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006547/0.3776, allocations: 263.8 kB / 482.2 MB, free: 3.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.445e-06/0.3776, allocations: 4 kB / 482.2 MB, free: 3.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.00205/0.3796, allocations: 0.7703 MB / 483 MB, free: 2.793 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.516e-05/0.3797, allocations: 59.34 kB / 483 MB, free: 2.723 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001772/0.3815, allocations: 1.455 MB / 484.5 MB, free: 1.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.484e-05/0.3815, allocations: 29.7 kB / 484.5 MB, free: 1.195 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006547/0.3822, allocations: 0.7232 MB / 485.2 MB, free: 480 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.807e-05/0.3823, allocations: 99.27 kB / 485.3 MB, free: 380 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.3825, allocations: 130 kB / 485.5 MB, free: 244 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3826, allocations: 326 kB / 485.8 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004382/0.3831, allocations: 160.9 kB / 485.9 MB, free: 15.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005972/0.3837, allocations: 362.8 kB / 486.3 MB, free: 15.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.3847, allocations: 0.5333 MB / 486.8 MB, free: 14.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.3847, allocations: 4 kB / 486.8 MB, free: 14.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001527/0.3862, allocations: 0.7518 MB / 487.6 MB, free: 13.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.3862, allocations: 8 kB / 487.6 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.387e-05/0.3863, allocations: 36 kB / 487.6 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003567/0.3867, allocations: 149.5 kB / 487.8 MB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000409/0.3871, allocations: 103.8 kB / 487.9 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006963/0.3878, allocations: 0.6734 MB / 488.5 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005694/0.3883, allocations: 75.58 kB / 488.6 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.072e-05/0.3884, allocations: 36 kB / 488.6 MB, free: 12.82 MB / 398.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.0004483/0.3888, allocations: 276.7 kB / 488.9 MB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002016/0.389, allocations: 194.8 kB / 489.1 MB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001761/0.3908, allocations: 0.7502 MB / 489.9 MB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3908, allocations: 0 / 489.9 MB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.3908, allocations: 3.984 kB / 489.9 MB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.443e-06/0.3908, allocations: 3.984 kB / 489.9 MB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.393, allocations: 1.24 MB / 491.1 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-05/0.393, allocations: 36 kB / 491.1 MB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002447/0.3933, allocations: 47.89 kB / 491.2 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002805/0.3936, allocations: 136.7 kB / 491.3 MB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.136e-05/0.3936, allocations: 20.06 kB / 491.3 MB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006383/0.3942, allocations: 0.6656 MB / 492 MB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3942, allocations: 0 / 492 MB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001381/0.3956, allocations: 0.718 MB / 492.7 MB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003961/0.396, allocations: 212.6 kB / 492.9 MB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001522/0.3962, allocations: 8 kB / 492.9 MB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/0.3966, allocations: 27.97 kB / 493 MB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.3967, allocations: 43.88 kB / 493 MB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.284e-05/0.3967, allocations: 24 kB / 493 MB, free: 8.289 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001279/0.398, allocations: 0.961 MB / 494 MB, free: 7.309 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.398, allocations: 0 / 494 MB, free: 7.309 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000917/0.3989, allocations: 335.5 kB / 494.3 MB, free: 6.98 MB / 398.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.002472/0.4014, allocations: 1.733 MB / 496.1 MB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.4027, allocations: 0.4974 MB / 496.6 MB, free: 4.703 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4027, allocations: 4 kB / 496.6 MB, free: 4.699 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006263/0.4033, allocations: 275.2 kB / 496.8 MB, free: 4.418 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.4046, allocations: 315.1 kB / 497.1 MB, free: 4.105 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01333/0.4179, allocations: 9.016 MB / 0.4943 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.4185, allocations: 0.5628 MB / 0.4948 GB, free: 10.1 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006185/0.4191, allocations: 199.9 kB / 0.495 GB, free: 9.902 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000622/0.4197, allocations: 0.5579 MB / 0.4956 GB, free: 9.344 MB / 414.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4197, allocations: 0 / 0.4956 GB, free: 9.344 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07231/0.4921, allocations: 35.86 MB / 0.5306 GB, free: 5.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.85/16.34, allocations: 8 kB / 0.5306 GB, free: 5.762 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --stepSize=5.0025e-15 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.06798606994562] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 16.53657146007754 16.737279101 16.382277671 Calling exit ...