Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005836/0.005836, allocations: 96.61 kB / 15.73 MB, free: 6.039 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.00128/0.00128, allocations: 197.8 kB / 16.68 MB, free: 5.969 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.495/1.495, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.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.00155/0.00155, allocations: 57.75 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09446/0.09602, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01449/0.1106, allocations: 14.03 MB / 387.2 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02352/0.1341, allocations: 19.73 MB / 406.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003173/0.1373, allocations: 91.25 kB / 407 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004068/0.1415, allocations: 1.201 MB / 408.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008867/0.1504, allocations: 2.258 MB / 410.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004702/0.1551, allocations: 1.393 MB / 411.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009908/0.165, allocations: 6.344 MB / 418.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008094/0.1659, allocations: 457.1 kB / 418.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001522/0.1674, allocations: 0.9874 MB / 419.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00126/0.1687, allocations: 1.087 MB / 420.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001987/0.1689, allocations: 76 kB / 420.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003707/0.1726, allocations: 1.156 MB / 422 MB, free: 316 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003598/0.173, allocations: 337.5 kB / 422.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001359/0.1743, allocations: 1.374 MB / 423.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005212/0.1796, allocations: 3.815 MB / 427.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1796, allocations: 0 / 427.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1796, allocations: 0 / 427.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.406e-05/0.1797, allocations: 4 kB / 427.5 MB, free: 10.76 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.00524/0.1849, allocations: 3.829 MB / 431.3 MB, free: 6.852 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.185, allocations: 12.03 kB / 431.3 MB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004652/0.1854, allocations: 413.4 kB / 431.7 MB, free: 6.434 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003252/0.1887, allocations: 2.465 MB / 434.2 MB, free: 3.898 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.1888, allocations: 40.94 kB / 434.2 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.1889, allocations: 55.95 kB / 434.3 MB, free: 3.801 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.1903, allocations: 0.7343 MB / 435 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.1903, allocations: 0 / 435 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.708e-05/0.1904, allocations: 16 kB / 435 MB, free: 3.043 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.449e-05/0.1904, allocations: 23.98 kB / 435.1 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.192, allocations: 0.8241 MB / 435.9 MB, free: 2.199 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005207/0.1972, allocations: 3.075 MB / 439 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.1984, allocations: 0.5713 MB / 439.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009894/0.1994, allocations: 0.6437 MB / 440.2 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2122/0.4116, allocations: 30.17 MB / 470.3 MB, free: 59.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006962/0.4123, allocations: 363.6 kB / 470.7 MB, free: 59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.424e-06/0.4124, allocations: 0 / 470.7 MB, free: 59 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002201/0.4146, allocations: 1.123 MB / 471.8 MB, free: 58.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.4146, allocations: 61.09 kB / 471.9 MB, free: 58.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003191/0.4178, allocations: 2.954 MB / 474.8 MB, free: 57.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.703e-05/0.4179, allocations: 32.36 kB / 474.9 MB, free: 57.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.4189, allocations: 1.509 MB / 476.4 MB, free: 55.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.419, allocations: 176.2 kB / 476.5 MB, free: 55.63 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000329/0.4194, allocations: 230.3 kB / 476.8 MB, free: 55.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.733e-05/0.4195, allocations: 345 kB / 477.1 MB, free: 55.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005201/0.42, allocations: 239.3 kB / 477.3 MB, free: 55.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000648/0.4207, allocations: 0.6063 MB / 477.9 MB, free: 54.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.4218, allocations: 0.8938 MB / 478.8 MB, free: 53.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.4219, allocations: 3.906 kB / 478.8 MB, free: 53.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001986/0.4238, allocations: 1.248 MB / 480.1 MB, free: 53.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.4239, allocations: 15.8 kB / 480.1 MB, free: 53.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.993e-05/0.424, allocations: 80.59 kB / 480.2 MB, free: 53.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.215e-05/0.424, allocations: 19.69 kB / 480.2 MB, free: 53.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006464/0.4247, allocations: 208.9 kB / 480.4 MB, free: 53.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.069e-05/0.4247, allocations: 23.64 kB / 480.4 MB, free: 53.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.4257, allocations: 114.9 kB / 480.5 MB, free: 53.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.4258, allocations: 66.78 kB / 480.6 MB, free: 53.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006449/0.4265, allocations: 438.6 kB / 481 MB, free: 52.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000268/0.4268, allocations: 397.7 kB / 481.4 MB, free: 52.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002177/0.429, allocations: 1.211 MB / 482.6 MB, free: 52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.429, allocations: 7.641 kB / 482.6 MB, free: 52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.429, allocations: 0 / 482.6 MB, free: 52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.429, allocations: 0 / 482.6 MB, free: 52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.4317, allocations: 2.1 MB / 484.7 MB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-05/0.4318, allocations: 68.56 kB / 484.8 MB, free: 50.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004325/0.4322, allocations: 92.95 kB / 484.9 MB, free: 50.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.4322, allocations: 1.469 kB / 484.9 MB, free: 50.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.386e-05/0.4323, allocations: 42.56 kB / 484.9 MB, free: 50.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.4323, allocations: 2.594 kB / 484.9 MB, free: 50.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.4323, allocations: 3.938 kB / 484.9 MB, free: 50.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.4342, allocations: 1.317 MB / 486.3 MB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005329/0.4347, allocations: 0.4889 MB / 486.8 MB, free: 49.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002673/0.435, allocations: 8 kB / 486.8 MB, free: 49.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006339/0.4356, allocations: 40.02 kB / 486.8 MB, free: 49.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.4358, allocations: 59.89 kB / 486.9 MB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.506e-05/0.4358, allocations: 39.98 kB / 486.9 MB, free: 49.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001796/0.4376, allocations: 1.916 MB / 488.8 MB, free: 47.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4376, allocations: 0 / 488.8 MB, free: 47.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001254/0.4389, allocations: 0.5978 MB / 489.4 MB, free: 46.56 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009907/0.4399, allocations: 0.7864 MB / 490.2 MB, free: 45.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.4413, allocations: 0.8063 MB / 491 MB, free: 45.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4413, allocations: 0 / 491 MB, free: 45.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000659/0.442, allocations: 451.5 kB / 491.4 MB, free: 44.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001634/0.4437, allocations: 0.5181 MB / 492 MB, free: 44.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005058/0.4487, allocations: 4.418 MB / 496.4 MB, free: 39.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007408/0.4495, allocations: 1.669 MB / 498.1 MB, free: 37.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008231/0.4503, allocations: 359 kB / 498.4 MB, free: 37.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.4505, allocations: 151.4 kB / 498.6 MB, free: 37.46 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4505, allocations: 0 / 498.6 MB, free: 37.46 MB / 382.1 MB Notification: Performance of Templates: time 0.04255/0.4931, allocations: 31.38 MB / 0.5175 GB, free: 6.035 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)