Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_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.0008883/0.0008883, allocations: 92.94 kB / 17.3 MB, free: 6 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.0007651/0.0007652, allocations: 181 kB / 18.21 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.263/1.263, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004248/0.0004248, allocations: 12 kB / 281.5 MB, free: 3.324 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07256/0.07299, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.004053/0.07708, allocations: 4.624 MB / 333.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0098/0.0869, allocations: 10.51 MB / 344.2 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000381/0.08731, allocations: 7.938 kB / 344.2 MB, free: 4.465 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001398/0.08872, allocations: 0.6251 MB / 344.8 MB, free: 3.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00183/0.09056, allocations: 0.813 MB / 345.6 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008415/0.09141, allocations: 419.8 kB / 346 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001494/0.09291, allocations: 1.299 MB / 347.3 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.09315, allocations: 161.8 kB / 347.5 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.0934, allocations: 246.6 kB / 347.7 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.09368, allocations: 305.9 kB / 348 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.1e-05/0.09373, allocations: 20 kB / 348.1 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.09479, allocations: 0.6519 MB / 348.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.506e-05/0.09488, allocations: 95.31 kB / 348.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002943/0.09518, allocations: 415.1 kB / 349.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.09631, allocations: 1.218 MB / 350.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.09632, allocations: 0 / 350.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09633, allocations: 0 / 350.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.09634, allocations: 0 / 350.4 MB, free: 14.18 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.001532/0.09788, allocations: 1.191 MB / 351.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.09792, allocations: 19.97 kB / 351.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.239e-05/0.098, allocations: 62.72 kB / 351.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.09813, allocations: 115.5 kB / 351.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.09931, allocations: 0.7501 MB / 352.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.09936, allocations: 20.56 kB / 352.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.09943, allocations: 24 kB / 352.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006293/0.1001, allocations: 333.3 kB / 352.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1001, allocations: 4 kB / 352.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.1001, allocations: 8 kB / 352.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.1001, allocations: 11.98 kB / 353 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005941/0.1007, allocations: 298.2 kB / 353.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.1024, allocations: 1.365 MB / 354.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006364/0.103, allocations: 322.4 kB / 354.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003849/0.1034, allocations: 252.8 kB / 355.2 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003431/0.1069, allocations: 3.612 MB / 358.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003839/0.1073, allocations: 203.2 kB / 359 MB, free: 4.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.864e-06/0.1073, allocations: 0 / 359 MB, free: 4.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001464/0.1088, allocations: 0.7693 MB / 359.8 MB, free: 4.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.1088, allocations: 59.34 kB / 359.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007945/0.1096, allocations: 0.8193 MB / 360.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.1096, allocations: 29.7 kB / 360.7 MB, free: 3.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000309/0.11, allocations: 448.4 kB / 361.1 MB, free: 2.633 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.866e-05/0.11, allocations: 98.59 kB / 361.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.74e-05/0.1101, allocations: 33.7 kB / 361.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1102, allocations: 326 kB / 361.5 MB, free: 2.172 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.1105, allocations: 128.6 kB / 361.7 MB, free: 2.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003358/0.1108, allocations: 236 kB / 361.9 MB, free: 1.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006303/0.1115, allocations: 388.9 kB / 362.3 MB, free: 1.344 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1115, allocations: 0 / 362.3 MB, free: 1.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008999/0.1124, allocations: 0.5405 MB / 362.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.1124, allocations: 8 kB / 362.8 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.355e-05/0.1125, allocations: 32 kB / 362.9 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001822/0.1127, allocations: 49.69 kB / 362.9 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.113, allocations: 84.3 kB / 363 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001708/0.1147, allocations: 2.65 MB / 365.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.115, allocations: 47.73 kB / 365.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/0.115, allocations: 20 kB / 365.7 MB, free: 13.63 MB / 318.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.0002222/0.1152, allocations: 201.7 kB / 365.9 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.731e-05/0.1153, allocations: 110.7 kB / 366 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/0.1164, allocations: 0.5011 MB / 366.5 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1164, allocations: 3.938 kB / 366.5 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1164, allocations: 4 kB / 366.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1164, allocations: 0 / 366.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005576/0.117, allocations: 0.5583 MB / 367.1 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.758e-05/0.117, allocations: 28 kB / 367.1 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002378/0.1173, allocations: 51.89 kB / 367.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001342/0.1174, allocations: 53.62 kB / 367.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.1174, allocations: 8 kB / 367.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001722/0.1192, allocations: 2.658 MB / 369.9 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1192, allocations: 0 / 369.9 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.1203, allocations: 0.6308 MB / 370.5 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.1205, allocations: 187.7 kB / 370.7 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.056e-05/0.1206, allocations: 8 kB / 370.7 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.1208, allocations: 15.98 kB / 370.7 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.213e-05/0.1209, allocations: 23.97 kB / 370.7 MB, free: 8.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/0.1209, allocations: 24.05 kB / 370.8 MB, free: 8.188 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005898/0.1215, allocations: 0.5389 MB / 371.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1215, allocations: 0 / 371.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005274/0.1221, allocations: 239.8 kB / 371.5 MB, free: 7.406 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.00177/0.1238, allocations: 1.438 MB / 373 MB, free: 5.926 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009718/0.1248, allocations: 0.6014 MB / 373.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1248, allocations: 0 / 373.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.1254, allocations: 458.9 kB / 374 MB, free: 4.812 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004354/0.1259, allocations: 88.33 kB / 374.1 MB, free: 4.723 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1329/0.2587, allocations: 6.474 MB / 380.6 MB, free: 51.8 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.2592, allocations: 0.9538 MB / 381.5 MB, free: 51.1 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002955/0.2595, allocations: 84.77 kB / 381.6 MB, free: 51.1 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000233/0.2597, allocations: 327.8 kB / 381.9 MB, free: 51.09 MB / 318.1 MB Notification: Performance of SimCode: time 9.52e-07/0.2597, allocations: 1.5 kB / 381.9 MB, free: 51.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.642/0.9017, allocations: 16.62 MB / 398.6 MB, free: 43.99 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/0.9019, allocations: 244 kB / 398.8 MB, free: 43.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.252/3.154, allocations: 4 kB / 398.8 MB, free: 43.72 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)