Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009397/0.0009397, allocations: 94.14 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002738/0.0002738, allocations: 4 kB / 351.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2595, allocations: 50.4 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.3922, allocations: 104.3 MB / 0.494 GB, free: 8.074 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.3925, allocations: 71.97 kB / 0.4941 GB, free: 8.004 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4836/0.8761, allocations: 139.4 MB / 0.6302 GB, free: 12.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.8761, allocations: 7.938 kB / 0.6302 GB, free: 12.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.064e-05/0.8762, allocations: 43.94 kB / 0.6303 GB, free: 12.38 MB / 410.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.006703/0.8829, allocations: 3.306 MB / 0.6335 GB, free: 9.004 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.883, allocations: 8.031 kB / 0.6335 GB, free: 8.996 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001979/0.8832, allocations: 98.5 kB / 0.6336 GB, free: 8.891 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000439/0.8836, allocations: 380.8 kB / 0.6339 GB, free: 8.516 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003706/0.8873, allocations: 2.271 MB / 0.6362 GB, free: 6.172 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.8874, allocations: 33 kB / 0.6362 GB, free: 6.137 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.8875, allocations: 48 kB / 0.6362 GB, free: 6.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.8891, allocations: 0.8963 MB / 0.6371 GB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.8891, allocations: 0 / 0.6371 GB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.721e-05/0.8892, allocations: 27.92 kB / 0.6371 GB, free: 5.137 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.925e-05/0.8893, allocations: 20 kB / 0.6372 GB, free: 5.117 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/0.891, allocations: 0.91 MB / 0.638 GB, free: 4.199 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005359/0.8964, allocations: 3.042 MB / 0.641 GB, free: 1.094 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.8981, allocations: 0.8535 MB / 0.6419 GB, free: 236 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2939/1.192, allocations: 35.76 MB / 0.6768 GB, free: 89.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/1.193, allocations: 0.6231 MB / 0.6774 GB, free: 89.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 4.157e-06/1.193, allocations: 0 / 0.6774 GB, free: 89.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.012/1.205, allocations: 6.061 MB / 0.6833 GB, free: 87.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.238e-05/1.205, allocations: 281.8 kB / 0.6836 GB, free: 86.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00324/1.208, allocations: 2.242 MB / 0.6858 GB, free: 86.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/1.209, allocations: 48.72 kB / 0.6858 GB, free: 86.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009827/1.21, allocations: 1.302 MB / 0.6871 GB, free: 86.42 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002703/1.21, allocations: 338.9 kB / 0.6874 GB, free: 86.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.81e-05/1.21, allocations: 18.62 kB / 0.6874 GB, free: 86.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.973e-05/1.21, allocations: 342.6 kB / 0.6877 GB, free: 85.95 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/1.211, allocations: 0.524 MB / 0.6883 GB, free: 85.95 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/1.212, allocations: 0.7491 MB / 0.689 GB, free: 85.71 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/1.214, allocations: 0.5781 MB / 0.6896 GB, free: 85.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/1.214, allocations: 5.094 kB / 0.6896 GB, free: 85.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003826/1.218, allocations: 2.082 MB / 0.6916 GB, free: 85.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/1.218, allocations: 7.688 kB / 0.6916 GB, free: 85.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001375/1.218, allocations: 120.5 kB / 0.6917 GB, free: 85.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005878/1.218, allocations: 267.8 kB / 0.692 GB, free: 85.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008092/1.219, allocations: 232 kB / 0.6922 GB, free: 85.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006484/1.226, allocations: 13.34 MB / 0.7052 GB, free: 72.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00188/1.228, allocations: 126.8 kB / 0.7053 GB, free: 72.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/1.228, allocations: 65.38 kB / 0.7054 GB, free: 72.59 MB / 442.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.001139/1.229, allocations: 426.9 kB / 0.7058 GB, free: 72.47 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004454/1.229, allocations: 371.4 kB / 0.7062 GB, free: 72.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00485/1.234, allocations: 2.369 MB / 0.7085 GB, free: 71.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/1.234, allocations: 6.25 kB / 0.7085 GB, free: 71.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/1.234, allocations: 5.969 kB / 0.7085 GB, free: 71.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/1.234, allocations: 3.188 kB / 0.7085 GB, free: 71.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/1.236, allocations: 1.536 MB / 0.71 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001165/1.236, allocations: 120.6 kB / 0.7101 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000698/1.237, allocations: 161.8 kB / 0.7103 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005304/1.238, allocations: 268 kB / 0.7105 GB, free: 71.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.983e-05/1.238, allocations: 41.88 kB / 0.7106 GB, free: 71.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00572/1.243, allocations: 13.33 MB / 0.7236 GB, free: 59.06 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/1.243, allocations: 2.875 kB / 0.7236 GB, free: 59.06 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004906/1.248, allocations: 2.714 MB / 0.7262 GB, free: 58.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001374/1.25, allocations: 0.4953 MB / 0.7267 GB, free: 58.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003214/1.25, allocations: 26.94 kB / 0.7267 GB, free: 58.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009397/1.251, allocations: 114.7 kB / 0.7268 GB, free: 58.19 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003278/1.251, allocations: 146.5 kB / 0.727 GB, free: 58.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.694e-05/1.251, allocations: 49.42 kB / 0.727 GB, free: 58.19 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002235/1.254, allocations: 1.736 MB / 0.7287 GB, free: 58.01 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.254, allocations: 0 / 0.7287 GB, free: 58.01 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002302/1.256, allocations: 0.7103 MB / 0.7294 GB, free: 58.01 MB / 442.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.006924/1.263, allocations: 4.07 MB / 0.7334 GB, free: 56.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003613/1.267, allocations: 2.634 MB / 0.736 GB, free: 55.66 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/1.267, allocations: 0 / 0.736 GB, free: 55.66 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002173/1.269, allocations: 2.018 MB / 0.7379 GB, free: 54.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002427/1.271, allocations: 0.5731 MB / 0.7385 GB, free: 54.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03035/1.302, allocations: 21.91 MB / 0.7599 GB, free: 41.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008931/1.303, allocations: 1.72 MB / 0.7616 GB, free: 40.32 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001357/1.304, allocations: 341.9 kB / 0.7619 GB, free: 40.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009121/1.305, allocations: 1.143 MB / 0.763 GB, free: 39.33 MB / 442.7 MB Notification: Performance of SimCode: time 1.072e-06/1.305, allocations: 4 kB / 0.763 GB, free: 39.32 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08837/1.393, allocations: 62.24 MB / 0.8238 GB, free: 6.277 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003052/1.394, allocations: 187.4 kB / 0.824 GB, free: 6.039 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.546/5.939, allocations: 0 / 0.824 GB, free: 6.039 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)