Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.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.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009455/0.0009455, allocations: 178.9 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.023/1.023, allocations: 205.2 MB / 214.1 MB, free: 5.156 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008606/0.0008607, allocations: 93.91 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1409/0.1418, allocations: 52.96 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06138/0.2032, allocations: 47.57 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2121/0.4153, allocations: 101.3 MB / 464 MB, free: 5.34 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001765/0.4155, allocations: 74.08 kB / 464 MB, free: 5.328 MB / 314.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.2385/0.654, allocations: 121.4 MB / 0.5717 GB, free: 4.371 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.654, allocations: 8 kB / 0.5717 GB, free: 4.363 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004719/0.6545, allocations: 387.4 kB / 0.5721 GB, free: 3.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003426/0.6579, allocations: 2.228 MB / 0.5742 GB, free: 1.676 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.658, allocations: 20 kB / 0.5743 GB, free: 1.656 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.6581, allocations: 35.89 kB / 0.5743 GB, free: 1.621 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00104/0.6592, allocations: 0.6545 MB / 0.5749 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.6602, allocations: 0.6992 MB / 0.5756 GB, free: 244 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.6602, allocations: 0 / 0.5756 GB, free: 244 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.882e-05/0.6603, allocations: 7.922 kB / 0.5756 GB, free: 236 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/0.6604, allocations: 20 kB / 0.5756 GB, free: 216 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1061/0.7664, allocations: 2.825 MB / 0.5784 GB, free: 133.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000396/0.7668, allocations: 358.7 kB / 0.5787 GB, free: 133.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005363/0.7674, allocations: 0.5437 MB / 0.5793 GB, free: 133 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02468/0.7921, allocations: 35.94 MB / 0.6144 GB, free: 106.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003466/0.7925, allocations: 284 kB / 0.6146 GB, free: 106.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=50): time 2.785e-06/0.7925, allocations: 0 / 0.6146 GB, free: 106.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.001168/0.7936, allocations: 0.8625 MB / 0.6155 GB, free: 106.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.7937, allocations: 268.2 kB / 0.6157 GB, free: 106.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002138/0.7959, allocations: 2.105 MB / 0.6178 GB, free: 105.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.7959, allocations: 30.73 kB / 0.6178 GB, free: 105.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/0.7962, allocations: 0.6117 MB / 0.6184 GB, free: 105.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.7963, allocations: 160.1 kB / 0.6186 GB, free: 105.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.94e-05/0.7964, allocations: 0 / 0.6186 GB, free: 105.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.941e-05/0.7964, allocations: 340.8 kB / 0.6189 GB, free: 105.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/0.7967, allocations: 172.9 kB / 0.6191 GB, free: 105.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003584/0.797, allocations: 0.5551 MB / 0.6196 GB, free: 104.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003841/0.7974, allocations: 258.9 kB / 0.6198 GB, free: 104.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.7975, allocations: 7.25 kB / 0.6199 GB, free: 104.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001291/0.7987, allocations: 1.084 MB / 0.6209 GB, free: 104.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.7988, allocations: 5.375 kB / 0.6209 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001074/0.7989, allocations: 83.19 kB / 0.621 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000491/0.7994, allocations: 285.1 kB / 0.6213 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005612/0.8, allocations: 179.2 kB / 0.6214 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009007/0.8009, allocations: 0.9407 MB / 0.6224 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009331/0.8018, allocations: 108.6 kB / 0.6225 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.557e-05/0.8019, allocations: 68.5 kB / 0.6225 GB, free: 103.9 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.000143/0.8021, allocations: 145.9 kB / 0.6227 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002314/0.8023, allocations: 364.5 kB / 0.623 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003492/0.8058, allocations: 1.459 MB / 0.6244 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.8058, allocations: 3.938 kB / 0.6244 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.8058, allocations: 3.781 kB / 0.6244 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.8058, allocations: 0 / 0.6244 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002462/0.8083, allocations: 2.012 MB / 0.6264 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.741e-05/0.8084, allocations: 70.94 kB / 0.6265 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/0.8087, allocations: 80.59 kB / 0.6266 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004158/0.8092, allocations: 263 kB / 0.6268 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.408e-05/0.8092, allocations: 27.67 kB / 0.6268 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008066/0.81, allocations: 0.926 MB / 0.6277 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.81, allocations: 0 / 0.6277 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001086/0.8111, allocations: 1.118 MB / 0.6288 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001186/0.8123, allocations: 1.569 MB / 0.6304 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005325/0.8129, allocations: 467.7 kB / 0.6308 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003641/0.8133, allocations: 13.75 kB / 0.6308 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007569/0.814, allocations: 40.92 kB / 0.6309 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.8142, allocations: 66.31 kB / 0.6309 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.158e-05/0.8142, allocations: 40.03 kB / 0.631 GB, free: 100.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001518/0.8157, allocations: 1.561 MB / 0.6325 GB, free: 100.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001656/0.8174, allocations: 0.604 MB / 0.6331 GB, free: 100.8 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.0009557/0.8184, allocations: 0.9549 MB / 0.634 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000937/0.8193, allocations: 0.6948 MB / 0.6347 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8193, allocations: 0 / 0.6347 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005474/0.8199, allocations: 413.3 kB / 0.6351 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.821, allocations: 458.2 kB / 0.6355 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003809/0.8248, allocations: 2.763 MB / 0.6382 GB, free: 99.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008975/0.8257, allocations: 1.813 MB / 0.64 GB, free: 98.72 MB / 426.7 MB Notification: Performance of SimCode: time 8.71e-07/0.8257, allocations: 0 / 0.64 GB, free: 98.72 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)