Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.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.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",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.001004/0.001004, allocations: 95.83 kB / 16.93 MB, free: 5.984 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.001085/0.001085, allocations: 180.8 kB / 17.82 MB, free: 5.652 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.492/1.492, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004311/0.0004311, allocations: 12 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08057/0.08102, allocations: 47.57 MB / 328.4 MB, free: 4.02 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008721/0.08978, allocations: 10.88 MB / 339.3 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0176/0.1074, allocations: 16.69 MB / 356 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001763/0.1092, allocations: 67.44 kB / 356 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002669/0.1119, allocations: 0.863 MB / 356.9 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006657/0.1186, allocations: 2.06 MB / 359 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003665/0.1223, allocations: 1.141 MB / 360.1 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009485/0.1318, allocations: 6.072 MB / 366.2 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007341/0.1326, allocations: 415.3 kB / 366.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001108/0.1337, allocations: 0.8046 MB / 367.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009995/0.1347, allocations: 0.963 MB / 368.4 MB, free: 11.94 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.1349, allocations: 44 kB / 368.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003485/0.1384, allocations: 1.214 MB / 369.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003135/0.1387, allocations: 278 kB / 369.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006716/0.1394, allocations: 0.5975 MB / 370.5 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002716/0.1421, allocations: 2.555 MB / 373 MB, free: 7.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1421, allocations: 0 / 373 MB, free: 7.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1421, allocations: 0 / 373 MB, free: 7.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.353e-05/0.1422, allocations: 0 / 373 MB, free: 7.238 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.0048/0.147, allocations: 3.174 MB / 376.2 MB, free: 3.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1471, allocations: 8.031 kB / 376.2 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000138/0.1472, allocations: 98.5 kB / 376.3 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003628/0.1476, allocations: 375.4 kB / 376.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003698/0.1513, allocations: 2.392 MB / 379.1 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.1513, allocations: 41 kB / 379.1 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.1515, allocations: 44 kB / 379.2 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.1528, allocations: 0.785 MB / 379.9 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1529, allocations: 0 / 379.9 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.863e-05/0.1529, allocations: 20 kB / 380 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.153, allocations: 19.98 kB / 380 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.152/0.305, allocations: 0.92 MB / 380.9 MB, free: 36.61 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005638/0.3107, allocations: 2.987 MB / 383.9 MB, free: 36.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/0.3126, allocations: 0.8512 MB / 384.7 MB, free: 36.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02519/0.3378, allocations: 30.33 MB / 415.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009612/0.3388, allocations: 0.6274 MB / 415.7 MB, free: 13.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 3.236e-06/0.3388, allocations: 0 / 415.7 MB, free: 13.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01062/0.3495, allocations: 6.017 MB / 421.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/0.3495, allocations: 68.53 kB / 421.8 MB, free: 10 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00243/0.352, allocations: 2.678 MB / 424.5 MB, free: 7.984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.3521, allocations: 46.64 kB / 424.5 MB, free: 7.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007281/0.3528, allocations: 1.301 MB / 425.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/0.3531, allocations: 335.8 kB / 426.1 MB, free: 6.781 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.549e-05/0.3531, allocations: 16 kB / 426.1 MB, free: 6.766 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.879e-05/0.3532, allocations: 349.9 kB / 426.5 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.3543, allocations: 0.5215 MB / 427 MB, free: 5.895 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.3555, allocations: 0.7096 MB / 427.7 MB, free: 5.129 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.3566, allocations: 0.5681 MB / 428.3 MB, free: 4.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3566, allocations: 4 kB / 428.3 MB, free: 4.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003585/0.3602, allocations: 2.101 MB / 430.4 MB, free: 2.426 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.3602, allocations: 8 kB / 430.4 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001376/0.3604, allocations: 120 kB / 430.5 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005845/0.361, allocations: 267 kB / 430.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008335/0.3618, allocations: 233.8 kB / 431 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008343/0.3702, allocations: 13.31 MB / 444.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.3717, allocations: 128 kB / 444.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001509/0.3718, allocations: 59.75 kB / 444.5 MB, free: 3.066 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.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 (97): * Single equations (assignments): 83 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000829/0.3727, allocations: 433.1 kB / 444.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000521/0.3732, allocations: 374.7 kB / 445.3 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005078/0.3783, allocations: 2.364 MB / 447.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.3783, allocations: 14.89 kB / 447.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.3784, allocations: 4 kB / 447.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.3784, allocations: 3.984 kB / 447.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.3806, allocations: 1.55 MB / 449.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001462/0.3808, allocations: 116 kB / 449.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007634/0.3815, allocations: 169.6 kB / 449.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006154/0.3822, allocations: 259.9 kB / 449.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.3823, allocations: 47.98 kB / 449.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007883/0.3902, allocations: 13.31 MB / 463.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3902, allocations: 0 / 463.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005534/0.3957, allocations: 2.735 MB / 465.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.3968, allocations: 484.5 kB / 466.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003453/0.3972, allocations: 30.12 kB / 466.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009647/0.3981, allocations: 111.9 kB / 466.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003399/0.3985, allocations: 147.7 kB / 466.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.895e-05/0.3986, allocations: 51.98 kB / 466.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002426/0.401, allocations: 1.747 MB / 468.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.401, allocations: 0 / 468.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001558/0.4026, allocations: 0.6586 MB / 469.1 MB, free: 9.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006924/0.4095, allocations: 3.97 MB / 473 MB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004397/0.414, allocations: 2.635 MB / 475.7 MB, free: 2.441 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.414, allocations: 0 / 475.7 MB, free: 2.441 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002844/0.4169, allocations: 2.02 MB / 477.7 MB, free: 292 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/0.4189, allocations: 0.4884 MB / 478.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04305/0.4619, allocations: 22.19 MB / 0.4886 GB, free: 7.953 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001188/0.4631, allocations: 1.724 MB / 0.4903 GB, free: 6.203 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001469/0.4646, allocations: 395.4 kB / 0.4907 GB, free: 5.812 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/0.4659, allocations: 1.202 MB / 0.4919 GB, free: 4.613 MB / 398.1 MB Notification: Performance of SimCode: time 9.21e-07/0.4659, allocations: 0 / 0.4919 GB, free: 4.613 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2353/0.7012, allocations: 61.24 MB / 0.5517 GB, free: 140.7 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001671/0.7014, allocations: 193 kB / 0.5519 GB, free: 140.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.857/4.559, allocations: 0 / 0.5519 GB, free: 140.5 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) Environment - environmentSimulation: