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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009856/0.0009856, allocations: 181 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.264/1.264, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008919/0.000892, allocations: 90.66 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002284/0.0002284, allocations: 11.98 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1986, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1038/0.3025, allocations: 102.4 MB / 478.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.3028, allocations: 75.95 kB / 478.3 MB, free: 10.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3644/0.6673, allocations: 124.2 MB / 0.5884 GB, free: 26.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6673, allocations: 0 / 0.5884 GB, free: 26.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.355e-05/0.6674, allocations: 48 kB / 0.5885 GB, free: 26.22 MB / 378.7 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.004486/0.6719, allocations: 3.329 MB / 0.5917 GB, free: 22.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.6719, allocations: 12.03 kB / 0.5917 GB, free: 22.81 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.672, allocations: 94.5 kB / 0.5918 GB, free: 22.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003152/0.6724, allocations: 384.3 kB / 0.5922 GB, free: 22.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002688/0.675, allocations: 2.283 MB / 0.5944 GB, free: 19.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.6751, allocations: 29 kB / 0.5945 GB, free: 19.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.6752, allocations: 55.91 kB / 0.5945 GB, free: 19.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.6765, allocations: 0.9041 MB / 0.5954 GB, free: 18.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.6765, allocations: 0 / 0.5954 GB, free: 18.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.869e-05/0.6766, allocations: 20 kB / 0.5954 GB, free: 18.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.6766, allocations: 19.98 kB / 0.5954 GB, free: 18.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.6781, allocations: 0.9177 MB / 0.5963 GB, free: 18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004001/0.6821, allocations: 3.049 MB / 0.5993 GB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.6835, allocations: 0.8504 MB / 0.6001 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03136/0.7148, allocations: 35.89 MB / 0.6352 GB, free: 5.008 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.716, allocations: 0.623 MB / 0.6358 GB, free: 4.371 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 2.946e-06/0.716, allocations: 0 / 0.6358 GB, free: 4.371 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.01132/0.7273, allocations: 6.078 MB / 0.6417 GB, free: 13.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.7275, allocations: 270 kB / 0.642 GB, free: 13.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002738/0.7302, allocations: 2.263 MB / 0.6442 GB, free: 11.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.7303, allocations: 41.7 kB / 0.6442 GB, free: 11.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/0.7314, allocations: 1.311 MB / 0.6455 GB, free: 9.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002714/0.7317, allocations: 331.3 kB / 0.6458 GB, free: 9.652 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.709e-05/0.7317, allocations: 16 kB / 0.6458 GB, free: 9.637 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.7319, allocations: 349.9 kB / 0.6462 GB, free: 9.289 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.733, allocations: 0.5176 MB / 0.6467 GB, free: 8.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/0.7343, allocations: 0.7513 MB / 0.6474 GB, free: 7.934 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.7355, allocations: 0.5769 MB / 0.648 GB, free: 7.359 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.7355, allocations: 0 / 0.648 GB, free: 7.359 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003732/0.7392, allocations: 2.089 MB / 0.65 GB, free: 5.191 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.7393, allocations: 14.12 kB / 0.65 GB, free: 5.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001408/0.7394, allocations: 120.5 kB / 0.6501 GB, free: 5.062 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006154/0.74, allocations: 268.4 kB / 0.6504 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008353/0.7409, allocations: 235.6 kB / 0.6506 GB, free: 4.539 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1886/0.9295, allocations: 13.33 MB / 0.6636 GB, free: 90.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.9311, allocations: 121.9 kB / 0.6638 GB, free: 90.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.9313, allocations: 62.67 kB / 0.6638 GB, free: 90.01 MB / 426.7 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.0008809/0.9322, allocations: 436.1 kB / 0.6642 GB, free: 89.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000286/0.9324, allocations: 376.8 kB / 0.6646 GB, free: 89.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004508/0.937, allocations: 2.363 MB / 0.6669 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.937, allocations: 9.125 kB / 0.6669 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.937, allocations: 10.95 kB / 0.6669 GB, free: 89.53 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.937, allocations: 3.469 kB / 0.6669 GB, free: 89.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.9385, allocations: 1.551 MB / 0.6684 GB, free: 89.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001125/0.9387, allocations: 117.9 kB / 0.6686 GB, free: 89.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000651/0.9393, allocations: 169.6 kB / 0.6687 GB, free: 89.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000513/0.9398, allocations: 256.8 kB / 0.669 GB, free: 89.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.441e-05/0.9399, allocations: 48.06 kB / 0.669 GB, free: 89.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00563/0.9456, allocations: 13.33 MB / 0.682 GB, free: 76.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.9456, allocations: 0 / 0.682 GB, free: 76.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004517/0.9501, allocations: 2.716 MB / 0.6847 GB, free: 76.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009994/0.9511, allocations: 0.5001 MB / 0.6852 GB, free: 75.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002797/0.9514, allocations: 21.19 kB / 0.6852 GB, free: 75.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008984/0.9523, allocations: 120.4 kB / 0.6853 GB, free: 75.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002993/0.9527, allocations: 140.2 kB / 0.6854 GB, free: 75.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-05/0.9527, allocations: 50.92 kB / 0.6855 GB, free: 75.87 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002173/0.9549, allocations: 1.753 MB / 0.6872 GB, free: 75.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9549, allocations: 0 / 0.6872 GB, free: 75.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001973/0.9569, allocations: 0.7147 MB / 0.6879 GB, free: 75.68 MB / 426.7 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.006198/0.9631, allocations: 4.079 MB / 0.6919 GB, free: 74.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003406/0.9666, allocations: 2.643 MB / 0.6945 GB, free: 73.33 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.9666, allocations: 0 / 0.6945 GB, free: 73.33 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002061/0.9687, allocations: 2.011 MB / 0.6964 GB, free: 72.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.9705, allocations: 475.9 kB / 0.6969 GB, free: 72.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03202/1.002, allocations: 22.05 MB / 0.7184 GB, free: 59.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/1.004, allocations: 1.722 MB / 0.7201 GB, free: 58.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001544/1.005, allocations: 341.3 kB / 0.7204 GB, free: 58.51 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001242/1.007, allocations: 1.148 MB / 0.7215 GB, free: 58.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.273e-06/1.007, allocations: 0 / 0.7215 GB, free: 58.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08584/1.092, allocations: 62.5 MB / 0.7826 GB, free: 13.84 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001358/1.093, allocations: 185.4 kB / 0.7828 GB, free: 13.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.655/5.748, allocations: 0 / 0.7828 GB, free: 13.6 MB / 426.7 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)