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.001509/0.001509, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.561/1.561, allocations: 221.5 MB / 230.3 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009285/0.0009284, allocations: 89.92 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.049e-05/2.041e-05, allocations: 7.984 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1274, allocations: 50.41 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3867/0.5141, allocations: 103.6 MB / 491.1 MB, free: 7.148 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.5144, allocations: 73.97 kB / 491.2 MB, free: 7.078 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.532/1.046, allocations: 134.1 MB / 0.6106 GB, free: 92.87 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.633e-06/1.046, allocations: 0 / 0.6106 GB, free: 92.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.788e-05/1.046, allocations: 41.91 kB / 0.6107 GB, free: 92.87 MB / 426.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.004899/1.051, allocations: 2.631 MB / 0.6132 GB, free: 91.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.503e-05/1.051, allocations: 7.281 kB / 0.6132 GB, free: 91.01 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005881/1.052, allocations: 385.1 kB / 0.6136 GB, free: 90.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003157/1.055, allocations: 2.236 MB / 0.6158 GB, free: 89.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.281e-05/1.055, allocations: 19.67 kB / 0.6158 GB, free: 89.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/1.055, allocations: 40.97 kB / 0.6158 GB, free: 89.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000957/1.056, allocations: 0.674 MB / 0.6165 GB, free: 89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009437/1.057, allocations: 0.7378 MB / 0.6172 GB, free: 88.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/1.057, allocations: 0 / 0.6172 GB, free: 88.54 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.956e-05/1.057, allocations: 3.984 kB / 0.6172 GB, free: 88.53 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/1.057, allocations: 18.94 kB / 0.6172 GB, free: 88.53 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004717/1.062, allocations: 2.924 MB / 0.6201 GB, free: 86.31 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007476/1.063, allocations: 0.6226 MB / 0.6207 GB, free: 85.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007977/1.064, allocations: 0.8571 MB / 0.6215 GB, free: 84.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03046/1.094, allocations: 35.85 MB / 0.6566 GB, free: 43.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006903/1.095, allocations: 0.4953 MB / 0.657 GB, free: 43.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 3.116e-06/1.095, allocations: 0 / 0.657 GB, free: 43.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=99): time 0.006342/1.101, allocations: 3.345 MB / 0.6603 GB, free: 39.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.229e-05/1.101, allocations: 285.7 kB / 0.6606 GB, free: 39.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002761/1.104, allocations: 2.028 MB / 0.6626 GB, free: 37.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.65e-05/1.104, allocations: 33.7 kB / 0.6626 GB, free: 37.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008975/1.105, allocations: 1.303 MB / 0.6639 GB, free: 36.17 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/1.106, allocations: 319.2 kB / 0.6642 GB, free: 35.85 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.078e-05/1.106, allocations: 0 / 0.6642 GB, free: 35.85 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.247e-05/1.106, allocations: 345.9 kB / 0.6645 GB, free: 35.51 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004209/1.106, allocations: 310.6 kB / 0.6648 GB, free: 35.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005607/1.107, allocations: 0.5274 MB / 0.6653 GB, free: 34.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000595/1.107, allocations: 365.7 kB / 0.6657 GB, free: 34.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/1.107, allocations: 0 / 0.6657 GB, free: 34.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002309/1.11, allocations: 1.594 MB / 0.6672 GB, free: 32.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/1.11, allocations: 9.562 kB / 0.6672 GB, free: 32.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001415/1.11, allocations: 124 kB / 0.6673 GB, free: 32.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005525/1.11, allocations: 253 kB / 0.6676 GB, free: 32.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008375/1.111, allocations: 231.6 kB / 0.6678 GB, free: 31.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00602/1.117, allocations: 12.78 MB / 0.6803 GB, free: 18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002212/1.119, allocations: 111.9 kB / 0.6804 GB, free: 17.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/1.12, allocations: 56 kB / 0.6804 GB, free: 17.83 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 () * 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.0003046/1.12, allocations: 136.7 kB / 0.6806 GB, free: 17.69 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002154/1.122, allocations: 1.521 MB / 0.6821 GB, free: 16.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003379/1.122, allocations: 371.5 kB / 0.6824 GB, free: 15.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003705/1.126, allocations: 1.895 MB / 0.6843 GB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/1.126, allocations: 8 kB / 0.6843 GB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/1.126, allocations: 7.984 kB / 0.6843 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/1.126, allocations: 7.984 kB / 0.6843 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002636/1.129, allocations: 1.432 MB / 0.6857 GB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001527/1.129, allocations: 120 kB / 0.6858 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007425/1.13, allocations: 167.8 kB / 0.686 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005617/1.13, allocations: 260.2 kB / 0.6862 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.629e-05/1.13, allocations: 35.97 kB / 0.6862 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006564/1.137, allocations: 12.78 MB / 0.6987 GB, free: 13.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/1.137, allocations: 0 / 0.6987 GB, free: 13.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/1.141, allocations: 2.038 MB / 0.7007 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/1.142, allocations: 0.4926 MB / 0.7012 GB, free: 11.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003748/1.143, allocations: 15.89 kB / 0.7012 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/1.144, allocations: 107.9 kB / 0.7013 GB, free: 10.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003674/1.144, allocations: 140.6 kB / 0.7015 GB, free: 10.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.991e-05/1.144, allocations: 47.98 kB / 0.7015 GB, free: 10.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002341/1.146, allocations: 1.516 MB / 0.703 GB, free: 9.277 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.146, allocations: 0 / 0.703 GB, free: 9.277 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001934/1.148, allocations: 0.6754 MB / 0.7036 GB, free: 8.602 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) * 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.004729/1.153, allocations: 3.501 MB / 0.7071 GB, free: 5.082 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002636/1.156, allocations: 2.1 MB / 0.7091 GB, free: 2.863 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/1.156, allocations: 0 / 0.7091 GB, free: 2.863 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/1.158, allocations: 1.719 MB / 0.7108 GB, free: 1.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002695/1.16, allocations: 0.5588 MB / 0.7113 GB, free: 468 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2476/1.408, allocations: 3.958 MB / 0.7152 GB, free: 103.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001571/1.41, allocations: 1.717 MB / 0.7169 GB, free: 103.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001512/1.411, allocations: 343.4 kB / 0.7172 GB, free: 103.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/1.412, allocations: 1.137 MB / 0.7183 GB, free: 103.1 MB / 442.7 MB Notification: Performance of SimCode: time 6.71e-07/1.412, allocations: 0.9375 kB / 0.7183 GB, free: 103.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1064/1.519, allocations: 56.68 MB / 0.7737 GB, free: 86.8 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/1.519, allocations: 125.4 kB / 0.7738 GB, free: 86.61 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.652/6.171, allocations: 0 / 0.7738 GB, free: 86.61 MB / 442.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)