Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001465/0.001465, allocations: 109.7 kB / 19.74 MB, free: 2.586 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.001302/0.001302, allocations: 222.3 kB / 22.92 MB, free: 5.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.277/1.277, allocations: 230.5 MB / 256.4 MB, free: 8.281 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 67.88 kB / 376.1 MB, free: 4.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.1976, allocations: 53.32 MB / 429.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008265/0.2059, allocations: 8.077 MB / 437.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02052/0.2264, allocations: 19.54 MB / 457 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009048/0.2273, allocations: 59.5 kB / 457.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002028/0.2294, allocations: 0.852 MB / 457.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004627/0.234, allocations: 1.822 MB / 459.8 MB, free: 8.973 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003354/0.2373, allocations: 1.363 MB / 461.1 MB, free: 7.605 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004762/0.2421, allocations: 3.304 MB / 464.4 MB, free: 4.289 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.2424, allocations: 128.7 kB / 464.5 MB, free: 4.141 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006505/0.243, allocations: 0.5678 MB / 465.1 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006678/0.2437, allocations: 0.559 MB / 465.7 MB, free: 3.008 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.93e-05/0.2438, allocations: 40 kB / 465.7 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003127/0.2469, allocations: 1.447 MB / 467.2 MB, free: 1.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.2471, allocations: 170.8 kB / 467.3 MB, free: 1.352 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006265/0.2477, allocations: 0.687 MB / 468 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002874/0.2506, allocations: 2.217 MB / 470.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2506, allocations: 0 / 470.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2506, allocations: 0 / 470.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.2506, allocations: 0 / 470.2 MB, free: 14.43 MB / 382.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.002914/0.2535, allocations: 2.077 MB / 472.3 MB, free: 12.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.2535, allocations: 12.03 kB / 472.3 MB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.334e-05/0.2536, allocations: 66.47 kB / 472.4 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002196/0.2538, allocations: 202.7 kB / 472.6 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.2556, allocations: 1.363 MB / 473.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.2556, allocations: 20.56 kB / 474 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.994e-05/0.2557, allocations: 27.98 kB / 474 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008554/0.2566, allocations: 437.1 kB / 474.4 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.2566, allocations: 0 / 474.4 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.506e-05/0.2566, allocations: 8 kB / 474.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.2566, allocations: 11.98 kB / 474.4 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.2577, allocations: 482 kB / 474.9 MB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00254/0.2602, allocations: 1.619 MB / 476.5 MB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008956/0.2611, allocations: 343.3 kB / 476.9 MB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007131/0.2618, allocations: 373.9 kB / 477.2 MB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01501/0.2769, allocations: 15.52 MB / 492.7 MB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005909/0.2775, allocations: 267.1 kB / 493 MB, free: 5.258 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 1.833e-06/0.2775, allocations: 0 / 493 MB, free: 5.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.001991/0.2794, allocations: 0.8456 MB / 493.9 MB, free: 4.383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.2795, allocations: 63.34 kB / 493.9 MB, free: 4.309 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/0.2811, allocations: 1.455 MB / 495.4 MB, free: 2.816 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.617e-05/0.2812, allocations: 33.7 kB / 495.4 MB, free: 2.777 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006266/0.2818, allocations: 0.7193 MB / 496.1 MB, free: 2.051 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.39e-05/0.2819, allocations: 103.2 kB / 496.2 MB, free: 1.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.2821, allocations: 130.1 kB / 496.4 MB, free: 1.816 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2822, allocations: 326 kB / 496.7 MB, free: 1.492 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004341/0.2826, allocations: 157 kB / 496.8 MB, free: 1.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005895/0.2832, allocations: 367.4 kB / 497.2 MB, free: 0.8867 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.2843, allocations: 0.5294 MB / 497.7 MB, free: 272 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.2843, allocations: 4 kB / 497.7 MB, free: 268 kB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001451/0.2857, allocations: 0.7525 MB / 498.5 MB, free: 15.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.2857, allocations: 12.16 kB / 498.5 MB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.174e-05/0.2858, allocations: 40 kB / 498.5 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002913/0.2861, allocations: 136.8 kB / 498.7 MB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004107/0.2865, allocations: 107.7 kB / 498.8 MB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006342/0.2871, allocations: 0.6851 MB / 499.4 MB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005021/0.2876, allocations: 67.59 kB / 499.5 MB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.978e-05/0.2877, allocations: 36 kB / 499.5 MB, free: 14.39 MB / 414.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.0003633/0.288, allocations: 269.7 kB / 499.8 MB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.2882, allocations: 198.8 kB / 0.4883 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.29, allocations: 0.7424 MB / 0.489 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.29, allocations: 4 kB / 0.489 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.29, allocations: 0 / 0.489 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.29, allocations: 0 / 0.489 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002089/0.2921, allocations: 1.311 MB / 0.4903 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.327e-05/0.2921, allocations: 36 kB / 0.4903 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002423/0.2924, allocations: 43.89 kB / 0.4904 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002379/0.2926, allocations: 132.8 kB / 0.4905 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.062e-05/0.2927, allocations: 23.92 kB / 0.4905 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000586/0.2933, allocations: 0.6578 MB / 0.4912 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.2933, allocations: 4.031 kB / 0.4912 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.2945, allocations: 0.7141 MB / 0.4919 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003394/0.2949, allocations: 291.7 kB / 0.4921 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.295, allocations: 8 kB / 0.4921 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004079/0.2954, allocations: 27.95 kB / 0.4922 GB, free: 9.781 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.2955, allocations: 43.91 kB / 0.4922 GB, free: 9.738 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-05/0.2956, allocations: 28.05 kB / 0.4922 GB, free: 9.711 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001143/0.2967, allocations: 0.9571 MB / 0.4932 GB, free: 8.734 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2967, allocations: 4 kB / 0.4932 GB, free: 8.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007824/0.2975, allocations: 331.6 kB / 0.4935 GB, free: 8.406 MB / 414.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.002318/0.2998, allocations: 1.748 MB / 0.4952 GB, free: 6.617 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.301, allocations: 0.4885 MB / 0.4957 GB, free: 6.117 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3011, allocations: 1.125 kB / 0.4957 GB, free: 6.117 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006351/0.3017, allocations: 279.3 kB / 0.4959 GB, free: 5.832 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.3029, allocations: 310.7 kB / 0.4962 GB, free: 5.523 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/0.3156, allocations: 9.01 MB / 0.505 GB, free: 12.14 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007484/0.3164, allocations: 1.153 MB / 0.5062 GB, free: 10.95 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005401/0.3169, allocations: 203.9 kB / 0.5064 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006054/0.3175, allocations: 0.5579 MB / 0.5069 GB, free: 10.19 MB / 430.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3175, allocations: 4 kB / 0.5069 GB, free: 10.19 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07102/0.3886, allocations: 35.55 MB / 0.5416 GB, free: 6.918 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.29, allocations: 4.062 kB / 0.5416 GB, free: 6.914 MB / 462.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.576342927997757]