Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.0009965/0.0009965, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001136/0.001137, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.65/1.65, allocations: 205.4 MB / 222.1 MB, free: 5.375 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.0005089/0.0005091, allocations: 8 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2597, allocations: 47.58 MB / 326.5 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0115/0.2712, allocations: 12.41 MB / 338.9 MB, free: 7.059 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02272/0.294, allocations: 17.94 MB / 356.8 MB, free: 5.066 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002745/0.2968, allocations: 27.81 kB / 356.8 MB, free: 5.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002884/0.2997, allocations: 0.9408 MB / 357.8 MB, free: 4.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009059/0.3088, allocations: 1.813 MB / 359.6 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005787/0.3146, allocations: 1.065 MB / 360.7 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01239/0.327, allocations: 5.912 MB / 366.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001388/0.3284, allocations: 424.6 kB / 367 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001671/0.3301, allocations: 0.8473 MB / 367.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001686/0.3318, allocations: 0.9823 MB / 368.8 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003861/0.3322, allocations: 44 kB / 368.9 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005794/0.338, allocations: 1.074 MB / 369.9 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006056/0.3387, allocations: 281.9 kB / 370.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001485/0.3402, allocations: 0.6209 MB / 370.8 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004478/0.3447, allocations: 2.707 MB / 373.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.159e-05/0.3447, allocations: 4 kB / 373.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.3447, allocations: 0 / 373.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002038/0.3449, allocations: 0 / 373.5 MB, free: 4.238 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007236/0.3522, allocations: 3.272 MB / 376.8 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.3522, allocations: 15.97 kB / 376.8 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008147/0.353, allocations: 395.1 kB / 377.2 MB, free: 492 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004982/0.358, allocations: 2.289 MB / 379.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.3581, allocations: 37 kB / 379.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.3582, allocations: 51.91 kB / 379.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.3596, allocations: 0.7499 MB / 380.3 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.3597, allocations: 0 / 380.3 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.848e-05/0.3597, allocations: 20 kB / 380.4 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.843e-05/0.3598, allocations: 23.98 kB / 380.4 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.3613, allocations: 0.8554 MB / 381.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005411/0.3667, allocations: 3.08 MB / 384.3 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.3679, allocations: 0.6181 MB / 384.9 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.369, allocations: 0.6718 MB / 385.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03099/0.4, allocations: 30.22 MB / 415.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008161/0.4008, allocations: 385.7 kB / 416.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.436e-06/0.4009, allocations: 0 / 416.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002553/0.4034, allocations: 1.167 MB / 417.4 MB, free: 4.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.4035, allocations: 59.41 kB / 417.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004698/0.4082, allocations: 2.909 MB / 420.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.283e-05/0.4083, allocations: 41.69 kB / 420.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001518/0.4098, allocations: 1.489 MB / 421.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.41, allocations: 169.7 kB / 422 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/0.4101, allocations: 20 kB / 422.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.4103, allocations: 338 kB / 422.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005997/0.4109, allocations: 261.8 kB / 422.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008511/0.4117, allocations: 0.6137 MB / 423.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007562/0.4125, allocations: 352.5 kB / 423.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.4125, allocations: 4 kB / 423.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002328/0.4149, allocations: 1.265 MB / 424.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.4149, allocations: 12.25 kB / 424.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/0.415, allocations: 84 kB / 425 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.424e-05/0.4151, allocations: 19.95 kB / 425 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007003/0.4158, allocations: 215.6 kB / 425.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.215e-05/0.4158, allocations: 27.92 kB / 425.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.4172, allocations: 118.9 kB / 425.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000151/0.4173, allocations: 68 kB / 425.4 MB, free: 11.77 MB / 366.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008826/0.4182, allocations: 437.5 kB / 425.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006159/0.4188, allocations: 383.4 kB / 426.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003102/0.422, allocations: 1.241 MB / 427.4 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.422, allocations: 11.95 kB / 427.5 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.422, allocations: 0 / 427.5 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.422, allocations: 0 / 427.5 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00381/0.4258, allocations: 2.14 MB / 429.6 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001065/0.4259, allocations: 68 kB / 429.7 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004503/0.4264, allocations: 111.9 kB / 429.8 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.09e-05/0.4264, allocations: 4 kB / 429.8 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.967e-05/0.4265, allocations: 35.98 kB / 429.8 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.4265, allocations: 0 / 429.8 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.4265, allocations: 8 kB / 429.8 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.4289, allocations: 1.356 MB / 431.2 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000897/0.4298, allocations: 480.1 kB / 431.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005069/0.4303, allocations: 11.95 kB / 431.7 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007778/0.4311, allocations: 48.02 kB / 431.7 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.4313, allocations: 63.88 kB / 431.8 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.857e-05/0.4313, allocations: 36 kB / 431.8 MB, free: 5.219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003198/0.4345, allocations: 1.884 MB / 433.7 MB, free: 3.336 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4346, allocations: 0 / 433.7 MB, free: 3.336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00185/0.4364, allocations: 0.5894 MB / 434.3 MB, free: 2.746 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001479/0.4379, allocations: 0.7495 MB / 435 MB, free: 1.988 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.4398, allocations: 0.8452 MB / 435.9 MB, free: 1.117 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.4398, allocations: 0 / 435.9 MB, free: 1.117 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008307/0.4406, allocations: 459.2 kB / 436.3 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/0.4429, allocations: 0.4907 MB / 436.8 MB, free: 152 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008106/0.451, allocations: 4.924 MB / 441.7 MB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/0.4524, allocations: 1.673 MB / 443.4 MB, free: 9.488 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001468/0.4539, allocations: 361.2 kB / 443.8 MB, free: 9.129 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002416/0.4541, allocations: 159.4 kB / 443.9 MB, free: 8.973 MB / 382.1 MB Notification: Performance of SimCode: time 1.963e-06/0.4542, allocations: 0 / 443.9 MB, free: 8.973 MB / 382.1 MB Notification: Performance of Templates: time 0.2362/0.6903, allocations: 29.18 MB / 473.1 MB, free: 103.5 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)