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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009374/0.0009373, allocations: 97.33 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009036/0.0009036, allocations: 173.3 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 223.2 MB / 241.1 MB, free: 396 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002805/0.0002806, allocations: 4 kB / 300.8 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1087, allocations: 50.42 MB / 351.2 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.004511/0.1132, allocations: 4.127 MB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01065/0.1239, allocations: 9.353 MB / 364.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009779/0.1249, allocations: 8 kB / 364.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001907/0.1268, allocations: 0.6184 MB / 365.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003363/0.1302, allocations: 0.8528 MB / 366.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001368/0.1316, allocations: 415.3 kB / 366.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002218/0.1338, allocations: 1.268 MB / 367.9 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002891/0.1341, allocations: 147.8 kB / 368 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003148/0.1345, allocations: 262.7 kB / 368.3 MB, free: 2.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.1348, allocations: 282.2 kB / 368.5 MB, free: 2.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.607e-05/0.1348, allocations: 19.94 kB / 368.6 MB, free: 2.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001558/0.1364, allocations: 0.7065 MB / 369.3 MB, free: 1.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.64e-05/0.1365, allocations: 87.42 kB / 369.4 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002398/0.1367, allocations: 193.1 kB / 369.5 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008909/0.1376, allocations: 0.8728 MB / 370.4 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1376, allocations: 0 / 370.4 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1377, allocations: 0 / 370.4 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.1377, allocations: 0 / 370.4 MB, free: 0.6758 MB / 302.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.1873/0.325, allocations: 1.196 MB / 371.6 MB, free: 25.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.325, allocations: 8.844 kB / 371.6 MB, free: 25.6 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/0.3251, allocations: 65.48 kB / 371.7 MB, free: 25.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.3253, allocations: 113.3 kB / 371.8 MB, free: 25.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.3265, allocations: 0.7066 MB / 372.5 MB, free: 25.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.3266, allocations: 22.25 kB / 372.5 MB, free: 25.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.603e-05/0.3266, allocations: 23.8 kB / 372.5 MB, free: 25.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006602/0.3273, allocations: 324.9 kB / 372.9 MB, free: 25.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3273, allocations: 1.094 kB / 372.9 MB, free: 25.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.3273, allocations: 18.44 kB / 372.9 MB, free: 25.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.3274, allocations: 7.906 kB / 372.9 MB, free: 25.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006937/0.3281, allocations: 297.4 kB / 373.2 MB, free: 25.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.3303, allocations: 1.374 MB / 374.6 MB, free: 24.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007375/0.331, allocations: 318.5 kB / 374.9 MB, free: 24.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003964/0.335, allocations: 3.609 MB / 378.5 MB, free: 21.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004197/0.3354, allocations: 203.3 kB / 378.7 MB, free: 21.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.264e-06/0.3355, allocations: 0 / 378.7 MB, free: 21.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001605/0.3371, allocations: 0.832 MB / 379.5 MB, free: 20.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.92e-05/0.3371, allocations: 60.12 kB / 379.6 MB, free: 20.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009364/0.3381, allocations: 0.8086 MB / 380.4 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.3381, allocations: 30.23 kB / 380.4 MB, free: 20.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003609/0.3385, allocations: 447.6 kB / 380.8 MB, free: 19.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.589e-05/0.3386, allocations: 107.3 kB / 380.9 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.721e-05/0.3386, allocations: 8.875 kB / 381 MB, free: 19.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.548e-05/0.3387, allocations: 322.9 kB / 381.3 MB, free: 19.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003206/0.339, allocations: 123.7 kB / 381.4 MB, free: 19.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/0.3393, allocations: 239.6 kB / 381.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.3397, allocations: 143.8 kB / 381.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3397, allocations: 1.75 kB / 381.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001011/0.3407, allocations: 0.5445 MB / 382.3 MB, free: 19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.3407, allocations: 5.562 kB / 382.3 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.765e-05/0.3408, allocations: 33.55 kB / 382.3 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002069/0.341, allocations: 55.56 kB / 382.4 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003041/0.3413, allocations: 82.5 kB / 382.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.3428, allocations: 2.664 MB / 385.1 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.3431, allocations: 48.06 kB / 385.2 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.87e-05/0.3432, allocations: 19.12 kB / 385.2 MB, free: 16.25 MB / 302.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 ($PRE.VIN.counter,VIN.counter,$whenCondition1,$PRE.VIN.T0,VIN.T0,$PRE.VIN.counter2,VIN.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002217/0.3434, allocations: 201.8 kB / 385.4 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.3435, allocations: 107.7 kB / 385.5 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/0.3447, allocations: 0.5163 MB / 386 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3447, allocations: 4.875 kB / 386 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3447, allocations: 2.312 kB / 386 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.3447, allocations: 3.422 kB / 386 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000677/0.3454, allocations: 0.554 MB / 386.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.874e-05/0.3455, allocations: 31.42 kB / 386.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002564/0.3457, allocations: 46.52 kB / 386.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001393/0.3459, allocations: 55.95 kB / 386.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.031e-05/0.3459, allocations: 11.06 kB / 386.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.3472, allocations: 2.659 MB / 389.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3472, allocations: 1.062 kB / 389.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.3485, allocations: 0.6352 MB / 390 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001989/0.3487, allocations: 179.2 kB / 390.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.172e-05/0.3488, allocations: 7.312 kB / 390.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.349, allocations: 24.61 kB / 390.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-05/0.3491, allocations: 27.81 kB / 390.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.3492, allocations: 10.17 kB / 390.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000666/0.3498, allocations: 0.5389 MB / 390.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3498, allocations: 5.469 kB / 390.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006997/0.3505, allocations: 234.9 kB / 391 MB, free: 12 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001866/0.3524, allocations: 1.412 MB / 392.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009916/0.3534, allocations: 0.6038 MB / 393.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3534, allocations: 8 kB / 393.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005267/0.354, allocations: 449.3 kB / 393.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004456/0.3544, allocations: 103.1 kB / 393.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007772/0.3622, allocations: 6.893 MB / 400.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.3626, allocations: 0.9729 MB / 401.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003128/0.3629, allocations: 77.28 kB / 401.6 MB, free: 4.535 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.3632, allocations: 330.5 kB / 401.9 MB, free: 4.246 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3632, allocations: 0 / 401.9 MB, free: 4.246 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03006/0.3933, allocations: 16.17 MB / 418 MB, free: 5.426 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/0.3935, allocations: 217.6 kB / 418.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.167/2.56, allocations: 3.938 kB / 418.3 MB, free: 5.184 MB / 318.1 MB (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/linux/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 --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)