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.001775/0.001775, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.00177/0.00177, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.363/1.363, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 42.75 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08856/0.08967, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005015/0.09473, allocations: 5.062 MB / 355.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009908/0.1047, allocations: 10.78 MB / 366 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005159/0.1052, allocations: 7.938 kB / 366 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001556/0.1068, allocations: 0.6946 MB / 366.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002264/0.1091, allocations: 1.01 MB / 367.7 MB, free: 2.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.1103, allocations: 0.596 MB / 368.3 MB, free: 2.082 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00161/0.1119, allocations: 1.358 MB / 369.7 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002356/0.1122, allocations: 189.1 kB / 369.9 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.1124, allocations: 282.5 kB / 370.1 MB, free: 248 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1746/0.287, allocations: 313.5 kB / 370.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.2872, allocations: 32 kB / 370.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001861/0.2891, allocations: 0.7446 MB / 371.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.849e-05/0.2892, allocations: 106 kB / 371.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004241/0.2896, allocations: 400.1 kB / 371.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001526/0.2912, allocations: 1.257 MB / 373 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2912, allocations: 1.094 kB / 373 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2912, allocations: 0.5312 kB / 373 MB, free: 11.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.2912, allocations: 1.188 kB / 373 MB, free: 11.9 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.001757/0.293, allocations: 1.319 MB / 374.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.293, allocations: 9.594 kB / 374.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.743e-05/0.2931, allocations: 65.69 kB / 374.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.2932, allocations: 115 kB / 374.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008172/0.2941, allocations: 0.7475 MB / 375.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.2941, allocations: 19.05 kB / 375.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.958e-05/0.2942, allocations: 33.88 kB / 375.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000644/0.2948, allocations: 314 kB / 375.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.2948, allocations: 3.859 kB / 375.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.2949, allocations: 12.19 kB / 375.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.2949, allocations: 8.328 kB / 375.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006321/0.2955, allocations: 280 kB / 375.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002201/0.2977, allocations: 1.375 MB / 377.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007272/0.2985, allocations: 299.9 kB / 377.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004209/0.2989, allocations: 243.4 kB / 377.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004483/0.3034, allocations: 3.592 MB / 381.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004864/0.3039, allocations: 197 kB / 381.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 4.037e-06/0.3039, allocations: 1.094 kB / 381.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001643/0.3056, allocations: 0.7269 MB / 382.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.3056, allocations: 56.52 kB / 382.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.3067, allocations: 0.8091 MB / 383.2 MB, free: 6.078 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.3067, allocations: 31.83 kB / 383.2 MB, free: 6.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003018/0.307, allocations: 458.5 kB / 383.6 MB, free: 5.676 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.297e-05/0.3071, allocations: 96.53 kB / 383.7 MB, free: 5.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.3072, allocations: 76.73 kB / 383.8 MB, free: 5.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.524e-05/0.3073, allocations: 327 kB / 384.1 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002778/0.3076, allocations: 113.6 kB / 384.2 MB, free: 5.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.3079, allocations: 227.5 kB / 384.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005777/0.3084, allocations: 364 kB / 384.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3085, allocations: 5.531 kB / 384.8 MB, free: 4.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009901/0.3095, allocations: 0.5158 MB / 385.3 MB, free: 4.594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.3095, allocations: 6.812 kB / 385.3 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-05/0.3096, allocations: 31.41 kB / 385.4 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002329/0.3098, allocations: 54.67 kB / 385.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003104/0.3101, allocations: 72.88 kB / 385.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/0.3117, allocations: 2.853 MB / 388.4 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.3121, allocations: 43.3 kB / 388.4 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.861e-05/0.3122, allocations: 22.48 kB / 388.4 MB, free: 1.684 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.0002736/0.3124, allocations: 199.3 kB / 388.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.3126, allocations: 112.7 kB / 388.7 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001086/0.3137, allocations: 495.5 kB / 389.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3137, allocations: 2.156 kB / 389.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3137, allocations: 1.094 kB / 389.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.3137, allocations: 1.969 kB / 389.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004974/0.3142, allocations: 0.5488 MB / 389.8 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.096e-05/0.3143, allocations: 28.56 kB / 389.8 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000244/0.3145, allocations: 50.39 kB / 389.8 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001332/0.3146, allocations: 53.27 kB / 389.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.3147, allocations: 14.55 kB / 389.9 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001778/0.3165, allocations: 2.844 MB / 392.7 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3165, allocations: 5.031 kB / 392.8 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.3177, allocations: 0.6068 MB / 393.4 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/0.3179, allocations: 182.3 kB / 393.5 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.692e-05/0.318, allocations: 11.02 kB / 393.5 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.3182, allocations: 12.97 kB / 393.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-05/0.3183, allocations: 32.38 kB / 393.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.3183, allocations: 11.3 kB / 393.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006049/0.319, allocations: 0.5545 MB / 394.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.319, allocations: 0 / 394.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007002/0.3197, allocations: 240.8 kB / 394.4 MB, free: 13.25 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.00187/0.3215, allocations: 1.39 MB / 395.8 MB, free: 12.39 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.3226, allocations: 0.5905 MB / 396.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.3226, allocations: 0 / 396.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005426/0.3231, allocations: 447.1 kB / 396.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005646/0.3237, allocations: 106 kB / 396.9 MB, free: 11.67 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007476/0.3312, allocations: 6.156 MB / 403.1 MB, free: 8.105 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.3317, allocations: 0.9554 MB / 404 MB, free: 7.391 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002932/0.332, allocations: 86.05 kB / 404.1 MB, free: 7.344 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003143/0.3323, allocations: 329 kB / 404.4 MB, free: 7.055 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3323, allocations: 0 / 404.4 MB, free: 7.055 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04188/0.3742, allocations: 17.27 MB / 421.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.32, allocations: 12.05 kB / 421.7 MB, free: 7.242 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)