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.0008652/0.0008652, allocations: 93.09 kB / 16.65 MB, free: 6.535 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.0009235/0.0009235, allocations: 174.3 kB / 17.56 MB, free: 6.184 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.327/1.327, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002652, allocations: 8.125 kB / 301.5 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09835/0.09863, allocations: 50.42 MB / 351.9 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005178/0.1039, allocations: 4.679 MB / 356.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01783/0.1217, allocations: 10.84 MB / 367.5 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001326/0.1231, allocations: 15.88 kB / 367.5 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004073/0.1272, allocations: 0.6407 MB / 368.1 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00832/0.1356, allocations: 0.8092 MB / 368.9 MB, free: 2.309 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003631/0.1393, allocations: 431.8 kB / 369.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004049/0.1434, allocations: 1.326 MB / 370.7 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004978/0.1439, allocations: 165.8 kB / 370.8 MB, free: 380 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006215/0.1445, allocations: 258.5 kB / 371.1 MB, free: 120 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2204/0.3649, allocations: 298.2 kB / 371.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001714/0.3652, allocations: 17.88 kB / 371.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003246/0.3684, allocations: 0.7296 MB / 372.1 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.3686, allocations: 98.14 kB / 372.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006618/0.3693, allocations: 410.5 kB / 372.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002332/0.3716, allocations: 1.221 MB / 373.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.3716, allocations: 0 / 373.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3716, allocations: 0 / 373.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.3717, allocations: 1.25 kB / 373.9 MB, free: 10.25 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.001949/0.3736, allocations: 1.194 MB / 375 MB, free: 9.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.3737, allocations: 10.16 kB / 375.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.744e-05/0.3738, allocations: 68.08 kB / 375.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.3739, allocations: 113.7 kB / 375.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.375, allocations: 0.7478 MB / 376 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.375, allocations: 21.94 kB / 376 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.853e-05/0.3751, allocations: 27.69 kB / 376 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006583/0.3757, allocations: 337.4 kB / 376.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3757, allocations: 0 / 376.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/0.3758, allocations: 9.875 kB / 376.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.3758, allocations: 11.12 kB / 376.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006359/0.3764, allocations: 294.5 kB / 376.7 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.3783, allocations: 1.375 MB / 378 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007023/0.3791, allocations: 316.8 kB / 378.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00044/0.3795, allocations: 254.8 kB / 378.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003921/0.3834, allocations: 3.602 MB / 382.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004792/0.3839, allocations: 198.7 kB / 382.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.723e-06/0.384, allocations: 4 kB / 382.4 MB, free: 5.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00173/0.3857, allocations: 0.7588 MB / 383.2 MB, free: 5.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.3857, allocations: 56.27 kB / 383.2 MB, free: 5.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.3868, allocations: 0.8166 MB / 384 MB, free: 4.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.3869, allocations: 32.45 kB / 384.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003769/0.3873, allocations: 441.6 kB / 384.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.382e-05/0.3874, allocations: 107.6 kB / 384.6 MB, free: 4.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.91e-05/0.3874, allocations: 35.81 kB / 384.6 MB, free: 4.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.01e-05/0.3875, allocations: 326.4 kB / 385 MB, free: 4.301 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003288/0.3878, allocations: 123.3 kB / 385.1 MB, free: 4.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000382/0.3882, allocations: 244.5 kB / 385.3 MB, free: 4.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006966/0.3889, allocations: 382.9 kB / 385.7 MB, free: 4.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.3889, allocations: 6.062 kB / 385.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001043/0.39, allocations: 0.5346 MB / 386.2 MB, free: 3.922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.39, allocations: 13.06 kB / 386.2 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-05/0.3901, allocations: 40.62 kB / 386.3 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002281/0.3903, allocations: 52.12 kB / 386.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003076/0.3906, allocations: 79.77 kB / 386.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.3921, allocations: 2.649 MB / 389.1 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003337/0.3924, allocations: 49.98 kB / 389.1 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.145e-05/0.3925, allocations: 16.47 kB / 389.1 MB, free: 1.363 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 (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.0002329/0.3927, allocations: 210.1 kB / 389.3 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.3928, allocations: 103.3 kB / 389.4 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.394, allocations: 0.515 MB / 389.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.394, allocations: 2.062 kB / 389.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.394, allocations: 1.031 kB / 389.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.394, allocations: 4.078 kB / 390 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000619/0.3947, allocations: 0.5473 MB / 390.5 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-05/0.3947, allocations: 32.84 kB / 390.5 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002601/0.395, allocations: 43.5 kB / 390.6 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00014/0.3951, allocations: 52.97 kB / 390.6 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.685e-05/0.3952, allocations: 11.34 kB / 390.6 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001687/0.3969, allocations: 2.638 MB / 393.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3969, allocations: 0.875 kB / 393.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.3982, allocations: 0.6407 MB / 393.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002122/0.3984, allocations: 179.4 kB / 394.1 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.013e-05/0.3985, allocations: 10.31 kB / 394.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.3987, allocations: 21.14 kB / 394.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.707e-05/0.3988, allocations: 30.2 kB / 394.2 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.3989, allocations: 12.33 kB / 394.2 MB, free: 13.56 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007651/0.3996, allocations: 0.5484 MB / 394.7 MB, free: 13.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3996, allocations: 0 / 394.7 MB, free: 13.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009227/0.4006, allocations: 244.8 kB / 394.9 MB, free: 13.27 MB / 318.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.002288/0.4029, allocations: 1.438 MB / 396.4 MB, free: 12.4 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.404, allocations: 0.607 MB / 397 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.404, allocations: 4.062 kB / 397 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000579/0.4046, allocations: 447.8 kB / 397.4 MB, free: 11.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006169/0.4052, allocations: 101.2 kB / 397.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.4157, allocations: 6.497 MB / 404 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005067/0.4162, allocations: 0.9536 MB / 405 MB, free: 6.977 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003161/0.4165, allocations: 85.56 kB / 405.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003487/0.4169, allocations: 329.1 kB / 405.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4169, allocations: 0 / 405.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.22/1.637, allocations: 16.64 MB / 422 MB, free: 7.367 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/1.638, allocations: 232.3 kB / 422.3 MB, free: 7.117 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.417/4.055, allocations: 4.062 kB / 422.3 MB, free: 7.113 MB / 334.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/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)