Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009597/0.0009598, allocations: 196 kB / 8.538 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.104/1.104, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009118/0.0009119, allocations: 92.97 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08882/0.08976, allocations: 56.9 MB / 343.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07741/0.1672, allocations: 51.47 MB / 394.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2137/0.3809, allocations: 104.1 MB / 498.8 MB, free: 5.141 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001684/0.3811, allocations: 71.59 kB / 498.9 MB, free: 5.105 MB / 362.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.3822/0.7633, allocations: 136.9 MB / 0.6209 GB, free: 80.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.7633, allocations: 11.62 kB / 0.621 GB, free: 80.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002718/0.7636, allocations: 374.6 kB / 0.6213 GB, free: 79.87 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002506/0.7661, allocations: 2.213 MB / 0.6235 GB, free: 79.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.7661, allocations: 15.25 kB / 0.6235 GB, free: 79.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.7662, allocations: 36.17 kB / 0.6235 GB, free: 79.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008921/0.7671, allocations: 0.6589 MB / 0.6242 GB, free: 79.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008862/0.768, allocations: 0.6982 MB / 0.6248 GB, free: 79.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.768, allocations: 3.938 kB / 0.6248 GB, free: 79.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.134e-05/0.7681, allocations: 0 / 0.6248 GB, free: 79.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.7681, allocations: 19.05 kB / 0.6249 GB, free: 79.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003807/0.7719, allocations: 2.83 MB / 0.6276 GB, free: 78.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004101/0.7724, allocations: 359.7 kB / 0.628 GB, free: 78.6 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005448/0.7729, allocations: 0.5328 MB / 0.6285 GB, free: 78.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02817/0.8011, allocations: 36.49 MB / 0.6641 GB, free: 48.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003973/0.8015, allocations: 281.7 kB / 0.6644 GB, free: 48.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=50): time 2.335e-06/0.8015, allocations: 0 / 0.6644 GB, free: 48.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=50): time 0.001355/0.8029, allocations: 0.8652 MB / 0.6652 GB, free: 48.35 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.803, allocations: 267.8 kB / 0.6655 GB, free: 48.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002501/0.8055, allocations: 2.09 MB / 0.6675 GB, free: 47.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/0.8055, allocations: 34.23 kB / 0.6676 GB, free: 47.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003083/0.8059, allocations: 0.6056 MB / 0.6682 GB, free: 46.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.288e-05/0.806, allocations: 167 kB / 0.6683 GB, free: 46.65 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.849e-05/0.806, allocations: 3.422 kB / 0.6683 GB, free: 46.65 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.585e-05/0.806, allocations: 343.2 kB / 0.6687 GB, free: 46.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.8063, allocations: 167.5 kB / 0.6688 GB, free: 46.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000355/0.8067, allocations: 0.5618 MB / 0.6694 GB, free: 45.66 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003802/0.8071, allocations: 261.7 kB / 0.6696 GB, free: 45.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.8071, allocations: 3.344 kB / 0.6696 GB, free: 45.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001316/0.8084, allocations: 1.079 MB / 0.6707 GB, free: 45.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/0.8084, allocations: 7.031 kB / 0.6707 GB, free: 45.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001036/0.8085, allocations: 80.25 kB / 0.6707 GB, free: 45.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004922/0.809, allocations: 274.6 kB / 0.671 GB, free: 45.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005484/0.8096, allocations: 194.1 kB / 0.6712 GB, free: 45.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008798/0.8105, allocations: 0.9314 MB / 0.6721 GB, free: 44.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009525/0.8114, allocations: 110.1 kB / 0.6722 GB, free: 44.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-05/0.8115, allocations: 67.03 kB / 0.6723 GB, free: 44.36 MB / 442.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.0001297/0.8117, allocations: 138.5 kB / 0.6724 GB, free: 44.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.8119, allocations: 369.4 kB / 0.6728 GB, free: 44.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003441/0.8154, allocations: 1.437 MB / 0.6742 GB, free: 43.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.8154, allocations: 6.469 kB / 0.6742 GB, free: 43.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.8154, allocations: 0 / 0.6742 GB, free: 43.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.8154, allocations: 3.609 kB / 0.6742 GB, free: 43.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00248/0.8179, allocations: 2.005 MB / 0.6761 GB, free: 42.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.934e-05/0.818, allocations: 65.92 kB / 0.6762 GB, free: 42.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/0.8183, allocations: 80.09 kB / 0.6763 GB, free: 42.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004263/0.8187, allocations: 262.6 kB / 0.6765 GB, free: 42.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-05/0.8188, allocations: 30.44 kB / 0.6765 GB, free: 42.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008292/0.8196, allocations: 0.9221 MB / 0.6774 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.8197, allocations: 0 / 0.6774 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001084/0.8207, allocations: 1.12 MB / 0.6785 GB, free: 41.21 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001171/0.8219, allocations: 1.565 MB / 0.6801 GB, free: 40.15 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005196/0.8225, allocations: 474 kB / 0.6805 GB, free: 39.83 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003648/0.8228, allocations: 6.562 kB / 0.6805 GB, free: 39.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007195/0.8236, allocations: 47.92 kB / 0.6806 GB, free: 39.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.8237, allocations: 55.23 kB / 0.6806 GB, free: 39.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.336e-05/0.8238, allocations: 41.56 kB / 0.6807 GB, free: 39.81 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001502/0.8253, allocations: 1.548 MB / 0.6822 GB, free: 39.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001713/0.827, allocations: 0.6051 MB / 0.6828 GB, free: 39.06 MB / 442.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.001036/0.828, allocations: 0.9687 MB / 0.6837 GB, free: 38.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009594/0.829, allocations: 0.6851 MB / 0.6844 GB, free: 38.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.829, allocations: 3.156 kB / 0.6844 GB, free: 38.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005388/0.8296, allocations: 407.5 kB / 0.6848 GB, free: 38.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00169/0.8313, allocations: 0.5369 MB / 0.6853 GB, free: 38.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.835, allocations: 2.758 MB / 0.688 GB, free: 36.92 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009218/0.8359, allocations: 1.808 MB / 0.6898 GB, free: 36.14 MB / 442.7 MB Notification: Performance of SimCode: time 3.01e-07/0.8359, allocations: 0 / 0.6898 GB, free: 36.14 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)