Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 108.8 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 192.8 kB / 24.5 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 225.6 MB / 253.3 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 39.94 kB / 371.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2451, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006142/0.2512, allocations: 5.108 MB / 428.5 MB, free: 9.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.2641, allocations: 10.82 MB / 439.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008292/0.2649, allocations: 43.56 kB / 439.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001928/0.2669, allocations: 0.6931 MB / 440.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003324/0.2702, allocations: 1.02 MB / 441.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00183/0.272, allocations: 0.6137 MB / 441.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002312/0.2743, allocations: 1.378 MB / 443.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002539/0.2746, allocations: 117.8 kB / 443.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003957/0.275, allocations: 302.5 kB / 443.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003851/0.2754, allocations: 321.9 kB / 443.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.775e-05/0.2754, allocations: 32 kB / 443.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001598/0.277, allocations: 0.7453 MB / 444.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.2771, allocations: 107.3 kB / 444.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004141/0.2776, allocations: 409.4 kB / 445.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001869/0.2794, allocations: 1.272 MB / 446.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.2794, allocations: 0 / 446.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2794, allocations: 0 / 446.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.2794, allocations: 0 / 446.4 MB, free: 7.531 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.002093/0.2815, allocations: 1.293 MB / 447.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.2816, allocations: 8.031 kB / 447.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.202e-05/0.2816, allocations: 8.844 kB / 447.7 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.066e-05/0.2817, allocations: 62.72 kB / 447.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.2818, allocations: 124.2 kB / 447.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.2829, allocations: 0.6874 MB / 448.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.283, allocations: 16.66 kB / 448.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.094e-05/0.283, allocations: 32 kB / 448.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006524/0.2837, allocations: 318 kB / 448.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.2837, allocations: 0 / 448.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.2837, allocations: 8 kB / 448.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.2837, allocations: 15.97 kB / 448.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006509/0.2844, allocations: 278.5 kB / 449.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.2865, allocations: 1.323 MB / 450.5 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000698/0.2872, allocations: 278.5 kB / 450.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004196/0.2876, allocations: 212.8 kB / 451 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003386/0.291, allocations: 1.459 MB / 452.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004458/0.2914, allocations: 199.3 kB / 452.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.405e-06/0.2914, allocations: 0 / 452.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001644/0.2931, allocations: 0.5765 MB / 453.2 MB, free: 436 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.2931, allocations: 59.34 kB / 453.3 MB, free: 364 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009972/0.2941, allocations: 0.8231 MB / 454.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.48e-05/0.2942, allocations: 33.7 kB / 454.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003883/0.2945, allocations: 452.8 kB / 454.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.889e-05/0.2946, allocations: 103.1 kB / 454.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.2948, allocations: 70.03 kB / 454.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2949, allocations: 325.9 kB / 455.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000295/0.2952, allocations: 116.7 kB / 455.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003676/0.2956, allocations: 224 kB / 455.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006574/0.2962, allocations: 361.3 kB / 455.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.2962, allocations: 4 kB / 455.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001011/0.2972, allocations: 0.5295 MB / 456.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.2972, allocations: 8 kB / 456.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-05/0.2973, allocations: 35.98 kB / 456.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000245/0.2975, allocations: 53.69 kB / 456.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003174/0.2979, allocations: 71.83 kB / 456.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002318/0.3002, allocations: 2.65 MB / 459.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003242/0.3005, allocations: 39.77 kB / 459.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.3006, allocations: 20.06 kB / 459.2 MB, free: 10.1 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (VIN.counter,$PRE.VIN.counter,VIN.counter2,$PRE.VIN.counter2,VIN.T0,$PRE.VIN.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003017/0.3009, allocations: 212.6 kB / 459.4 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.301, allocations: 111.5 kB / 459.5 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.3022, allocations: 491.3 kB / 460 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.3022, allocations: 4 kB / 460 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3022, allocations: 0 / 460 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3022, allocations: 3.984 kB / 460 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006797/0.3029, allocations: 0.5417 MB / 460.5 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.307e-05/0.3029, allocations: 28 kB / 460.5 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002502/0.3031, allocations: 43.95 kB / 460.6 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001506/0.3033, allocations: 49.62 kB / 460.6 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.3033, allocations: 12 kB / 460.6 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.3054, allocations: 2.645 MB / 463.3 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3054, allocations: 3.984 kB / 463.3 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.3067, allocations: 0.6082 MB / 463.9 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002284/0.3069, allocations: 107.3 kB / 464 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.307, allocations: 8 kB / 464 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.3072, allocations: 20.05 kB / 464 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.773e-05/0.3073, allocations: 27.95 kB / 464.1 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.3074, allocations: 11.98 kB / 464.1 MB, free: 4.867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007474/0.3081, allocations: 0.5467 MB / 464.6 MB, free: 4.312 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3081, allocations: 0 / 464.6 MB, free: 4.312 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007557/0.3089, allocations: 247.4 kB / 464.9 MB, free: 4.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * Number of discrete variables: 4 ($whenCondition1,VIN.T0,VIN.counter,VIN.counter2) * Number of discrete states: 2 (VIN.counter,VIN.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * 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): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002177/0.311, allocations: 1.41 MB / 466.3 MB, free: 2.621 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.3122, allocations: 0.5698 MB / 466.8 MB, free: 2.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3122, allocations: 0 / 466.8 MB, free: 2.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006345/0.3128, allocations: 420.6 kB / 467.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005756/0.3134, allocations: 115.8 kB / 467.4 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009132/0.3225, allocations: 5.808 MB / 473.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006015/0.3231, allocations: 0.9561 MB / 474.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002519/0.3234, allocations: 77.22 kB / 474.2 MB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003827/0.3238, allocations: 339.3 kB / 474.5 MB, free: 10.04 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3238, allocations: 0 / 474.5 MB, free: 10.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05634/0.3801, allocations: 17.88 MB / 492.4 MB, free: 8.371 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.53, allocations: 14.23 kB / 492.4 MB, free: 8.359 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.001e-10 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.852155390020926] Failed to read output from testmodel.py, exit status != 0: ['time', 'Q1.vbc', 'Q1.vbe'] 13.703727143991273 13.72083202 13.43802167 Calling exit ...