Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.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.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009508/0.0009508, allocations: 186.8 kB / 8.137 MB, free: 2.215 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.122/1.122, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0009198/0.0009199, allocations: 99.94 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08679/0.08775, allocations: 55.82 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.272, allocations: 50.39 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1016/0.3737, allocations: 103.3 MB / 490.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.3739, allocations: 71.91 kB / 490.4 MB, free: 15.41 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.3633/0.7373, allocations: 136.5 MB / 0.6122 GB, free: 10.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.7373, allocations: 8 kB / 0.6122 GB, free: 10.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005369/0.7379, allocations: 379.4 kB / 0.6126 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00359/0.7415, allocations: 2.227 MB / 0.6147 GB, free: 7.984 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.644e-05/0.7415, allocations: 19.98 kB / 0.6148 GB, free: 7.965 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.7416, allocations: 35.91 kB / 0.6148 GB, free: 7.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001019/0.7426, allocations: 0.6545 MB / 0.6154 GB, free: 7.277 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.7437, allocations: 0.6992 MB / 0.6161 GB, free: 6.547 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.7437, allocations: 0 / 0.6161 GB, free: 6.547 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.19e-05/0.7438, allocations: 0 / 0.6161 GB, free: 6.547 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.231e-05/0.7438, allocations: 19.98 kB / 0.6161 GB, free: 6.527 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004804/0.7486, allocations: 2.828 MB / 0.6189 GB, free: 3.645 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004711/0.7491, allocations: 355 kB / 0.6192 GB, free: 3.289 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006723/0.7498, allocations: 0.5363 MB / 0.6198 GB, free: 2.754 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1375/0.8872, allocations: 35.83 MB / 0.6547 GB, free: 114.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003477/0.8876, allocations: 285.9 kB / 0.655 GB, free: 114.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=50): time 2.064e-06/0.8876, allocations: 0 / 0.655 GB, free: 114.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.001145/0.8888, allocations: 0.8685 MB / 0.6559 GB, free: 114.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.8889, allocations: 272 kB / 0.6561 GB, free: 114 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/0.8909, allocations: 2.086 MB / 0.6582 GB, free: 113.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.891, allocations: 33.3 kB / 0.6582 GB, free: 113.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002843/0.8913, allocations: 0.606 MB / 0.6588 GB, free: 113.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.351e-05/0.8914, allocations: 165.6 kB / 0.6589 GB, free: 113.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.8914, allocations: 0 / 0.6589 GB, free: 113.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.799e-05/0.8915, allocations: 338.6 kB / 0.6593 GB, free: 113.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/0.8917, allocations: 168.1 kB / 0.6594 GB, free: 113.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003495/0.8921, allocations: 0.5583 MB / 0.66 GB, free: 112.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.8925, allocations: 262 kB / 0.6602 GB, free: 112.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.8925, allocations: 7.5 kB / 0.6602 GB, free: 112.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001305/0.8938, allocations: 1.078 MB / 0.6613 GB, free: 112.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.8938, allocations: 4.094 kB / 0.6613 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/0.8939, allocations: 84.25 kB / 0.6614 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004925/0.8944, allocations: 276.1 kB / 0.6616 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000552/0.895, allocations: 184.7 kB / 0.6618 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008482/0.8958, allocations: 0.9401 MB / 0.6627 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008893/0.8967, allocations: 103.5 kB / 0.6628 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-05/0.8968, allocations: 69.38 kB / 0.6629 GB, free: 111.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001451/0.897, allocations: 144.5 kB / 0.663 GB, free: 111.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002348/0.8972, allocations: 362.5 kB / 0.6634 GB, free: 111.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003494/0.9007, allocations: 1.443 MB / 0.6648 GB, free: 111.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.9008, allocations: 3.375 kB / 0.6648 GB, free: 111.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.9008, allocations: 3.047 kB / 0.6648 GB, free: 111.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.9008, allocations: 3.062 kB / 0.6648 GB, free: 111.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.9032, allocations: 2.005 MB / 0.6667 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.348e-05/0.9033, allocations: 67.52 kB / 0.6668 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003275/0.9036, allocations: 81.42 kB / 0.6669 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004198/0.9041, allocations: 262.5 kB / 0.6671 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.565e-05/0.9041, allocations: 28.22 kB / 0.6672 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008379/0.905, allocations: 0.9265 MB / 0.6681 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.905, allocations: 3.422 kB / 0.6681 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001064/0.906, allocations: 1.108 MB / 0.6691 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001154/0.9072, allocations: 1.566 MB / 0.6707 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005324/0.9078, allocations: 474.7 kB / 0.6711 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003594/0.9081, allocations: 6.875 kB / 0.6711 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007407/0.9089, allocations: 43.66 kB / 0.6712 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.909, allocations: 68.45 kB / 0.6712 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.504e-05/0.9091, allocations: 37.17 kB / 0.6713 GB, free: 108.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001521/0.9106, allocations: 1.555 MB / 0.6728 GB, free: 108.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001682/0.9123, allocations: 0.5916 MB / 0.6734 GB, free: 108.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009465/0.9133, allocations: 0.9518 MB / 0.6743 GB, free: 108.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009228/0.9142, allocations: 0.6951 MB / 0.675 GB, free: 108.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.9142, allocations: 0 / 0.675 GB, free: 108.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005425/0.9147, allocations: 416 kB / 0.6754 GB, free: 108.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/0.9165, allocations: 0.5326 MB / 0.6759 GB, free: 108.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.9202, allocations: 2.759 MB / 0.6786 GB, free: 107.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009306/0.9212, allocations: 1.801 MB / 0.6804 GB, free: 106.6 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.9212, allocations: 0 / 0.6804 GB, free: 106.6 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)