Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",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.001027/0.001027, allocations: 186.6 kB / 8.135 MB, free: 2.203 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.13/1.13, allocations: 221.4 MB / 229.9 MB, free: 3.09 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.0009639/0.0009639, allocations: 96.77 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09936/0.1004, allocations: 55.82 MB / 336.6 MB, free: 9.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.3059, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08662/0.3926, allocations: 81.72 MB / 468.7 MB, free: 5.078 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.3928, allocations: 71.97 kB / 468.8 MB, free: 5.008 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.03338/0.4262, allocations: 12.41 MB / 481.2 MB, free: 8.539 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.4263, allocations: 12 kB / 481.2 MB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002079/0.4265, allocations: 82.97 kB / 481.3 MB, free: 8.445 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000762/0.4273, allocations: 493.9 kB / 481.8 MB, free: 7.918 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.4273, allocations: 20 kB / 481.8 MB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.4274, allocations: 36 kB / 481.8 MB, free: 7.863 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001064/0.4285, allocations: 0.5806 MB / 482.4 MB, free: 7.285 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.4296, allocations: 0.6963 MB / 483.1 MB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.4296, allocations: 0 / 483.1 MB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.309e-05/0.4297, allocations: 2.438 kB / 483.1 MB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.4297, allocations: 16 kB / 483.1 MB, free: 6.508 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004959/0.4347, allocations: 3.229 MB / 486.4 MB, free: 3.164 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006668/0.4354, allocations: 439.9 kB / 486.8 MB, free: 2.723 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003829/0.4358, allocations: 254.5 kB / 487 MB, free: 2.473 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.072e-05/0.4359, allocations: 20.41 kB / 487.1 MB, free: 2.453 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004601/0.4363, allocations: 300.4 kB / 487.3 MB, free: 2.148 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.026e-06/0.4363, allocations: 0 / 487.3 MB, free: 2.148 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008821/0.4372, allocations: 494.4 kB / 487.8 MB, free: 1.656 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/0.4374, allocations: 372.3 kB / 488.2 MB, free: 1.207 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005018/0.4379, allocations: 430 kB / 488.6 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.798e-05/0.438, allocations: 29.7 kB / 488.6 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.4382, allocations: 303.4 kB / 488.9 MB, free: 452 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.4383, allocations: 161.7 kB / 489.1 MB, free: 288 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.242e-05/0.4383, allocations: 4 kB / 489.1 MB, free: 284 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.4385, allocations: 370.7 kB / 489.5 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004329/0.4389, allocations: 237.6 kB / 489.7 MB, free: 15.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005363/0.4395, allocations: 0.5137 MB / 490.2 MB, free: 15.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003945/0.4399, allocations: 262.9 kB / 490.5 MB, free: 14.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.4399, allocations: 4 kB / 490.5 MB, free: 14.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001214/0.4411, allocations: 0.7096 MB / 491.2 MB, free: 14.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.4411, allocations: 4 kB / 491.2 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.4411, allocations: 8 kB / 491.2 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.4412, allocations: 8 kB / 491.2 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.4424, allocations: 276 kB / 491.5 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.4424, allocations: 15.94 kB / 491.5 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.4436, allocations: 239.6 kB / 491.7 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.797e-05/0.4437, allocations: 35.28 kB / 491.8 MB, free: 13.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001682/0.4438, allocations: 135.5 kB / 491.9 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.444, allocations: 63.25 kB / 491.9 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001684/0.4441, allocations: 65.72 kB / 492 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.4441, allocations: 7.906 kB / 492 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4442, allocations: 0 / 492 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.4442, allocations: 4.734 kB / 492 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007064/0.4449, allocations: 0.6462 MB / 492.7 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.4449, allocations: 0 / 492.7 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009066/0.4458, allocations: 195.8 kB / 492.9 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.4458, allocations: 4 kB / 492.9 MB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.843e-05/0.4459, allocations: 11.98 kB / 492.9 MB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.4459, allocations: 3.938 kB / 492.9 MB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.4459, allocations: 4 kB / 492.9 MB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00129/0.4472, allocations: 0.8163 MB / 493.7 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001799/0.449, allocations: 1.483 MB / 495.2 MB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.4491, allocations: 144.2 kB / 495.3 MB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.4493, allocations: 128 / 495.3 MB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008998/0.4502, allocations: 163.8 kB / 495.5 MB, free: 9.652 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.4503, allocations: 52.36 kB / 495.5 MB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.724e-05/0.4504, allocations: 15.98 kB / 495.6 MB, free: 9.586 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003755/0.4508, allocations: 319 kB / 495.9 MB, free: 9.277 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001156/0.4519, allocations: 159.6 kB / 496 MB, free: 9.121 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN2.signalSource.count,VIN1.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001715/0.4521, allocations: 103.2 kB / 496.1 MB, free: 9.012 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.4532, allocations: 0.6485 MB / 496.8 MB, free: 8.352 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4532, allocations: 4 kB / 496.8 MB, free: 8.348 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004315/0.4536, allocations: 269.5 kB / 497 MB, free: 8.082 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000419/0.454, allocations: 84.98 kB / 497.1 MB, free: 8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.456, allocations: 0.9062 MB / 498 MB, free: 7.059 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007045/0.4568, allocations: 0.9598 MB / 499 MB, free: 6.07 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4568, allocations: 0 / 499 MB, free: 6.07 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)