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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001123/0.001122, allocations: 177.1 kB / 8.35 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.447/1.447, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0009316/0.0009315, allocations: 99.38 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.832e-05/1.833e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3632/0.467, allocations: 81.8 MB / 469.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/0.4672, allocations: 71.97 kB / 469.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0311/0.4984, allocations: 11.31 MB / 480.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4984, allocations: 4 kB / 480.7 MB, free: 1.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.813e-05/0.4984, allocations: 12 kB / 480.7 MB, free: 1.469 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.00249/0.5009, allocations: 1.125 MB / 481.9 MB, free: 292 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.501, allocations: 16.03 kB / 481.9 MB, free: 276 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.5012, allocations: 79.06 kB / 482 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006836/0.5019, allocations: 492 kB / 482.4 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.5019, allocations: 23.98 kB / 482.5 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.728e-05/0.502, allocations: 36 kB / 482.5 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009673/0.503, allocations: 0.5767 MB / 483.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.504, allocations: 0.6892 MB / 483.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.504, allocations: 8 kB / 483.8 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.004e-05/0.5041, allocations: 0 / 483.8 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.5041, allocations: 16 kB / 483.8 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00457/0.5087, allocations: 3.193 MB / 487 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000995/0.5097, allocations: 0.6652 MB / 487.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004616/0.5102, allocations: 290.5 kB / 487.9 MB, free: 9.953 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.153e-05/0.5103, allocations: 16.41 kB / 488 MB, free: 9.934 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004954/0.5108, allocations: 308.5 kB / 488.3 MB, free: 9.625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.977e-06/0.5108, allocations: 7.984 kB / 488.3 MB, free: 9.617 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008275/0.5116, allocations: 0.4914 MB / 488.8 MB, free: 9.117 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.5117, allocations: 372.3 kB / 489.1 MB, free: 8.664 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004371/0.5122, allocations: 422 kB / 489.5 MB, free: 8.246 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.52e-05/0.5123, allocations: 33.7 kB / 489.6 MB, free: 8.207 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.5125, allocations: 367.4 kB / 489.9 MB, free: 7.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.5126, allocations: 157.7 kB / 490.1 MB, free: 7.684 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.939e-05/0.5127, allocations: 0 / 490.1 MB, free: 7.684 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.5128, allocations: 378.8 kB / 490.4 MB, free: 7.305 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003848/0.5132, allocations: 229.6 kB / 490.7 MB, free: 7.082 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005409/0.5137, allocations: 0.5059 MB / 491.2 MB, free: 6.445 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003819/0.5141, allocations: 262 kB / 491.4 MB, free: 6.191 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.5141, allocations: 4 kB / 491.4 MB, free: 6.188 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001095/0.5152, allocations: 0.7127 MB / 492.1 MB, free: 5.465 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.32e-05/0.5153, allocations: 60.66 kB / 492.2 MB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.5153, allocations: 8.844 kB / 492.2 MB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.5154, allocations: 15.94 kB / 492.2 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.5164, allocations: 255.6 kB / 492.5 MB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.5164, allocations: 15.89 kB / 492.5 MB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.5174, allocations: 207 kB / 492.7 MB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.324e-05/0.5175, allocations: 31.98 kB / 492.7 MB, free: 4.871 MB / 362.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.0001675/0.5177, allocations: 140.7 kB / 492.9 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007232/0.5184, allocations: 491.4 kB / 493.3 MB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-05/0.5185, allocations: 59.25 kB / 493.4 MB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001413/0.5186, allocations: 61.72 kB / 493.5 MB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.5186, allocations: 7.953 kB / 493.5 MB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.5187, allocations: 0 / 493.5 MB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.5187, allocations: 11.92 kB / 493.5 MB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001728/0.5204, allocations: 1.311 MB / 494.8 MB, free: 2.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.5204, allocations: 0 / 494.8 MB, free: 2.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008126/0.5212, allocations: 175.8 kB / 495 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.5213, allocations: 0 / 495 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/0.5213, allocations: 11.98 kB / 495 MB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.5213, allocations: 0 / 495 MB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.5213, allocations: 0 / 495 MB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.5225, allocations: 0.8691 MB / 495.8 MB, free: 1.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.5226, allocations: 144.2 kB / 496 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.229e-05/0.5227, allocations: 7.984 kB / 496 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007811/0.5235, allocations: 135.9 kB / 496.1 MB, free: 1.379 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.5237, allocations: 48.36 kB / 496.2 MB, free: 1.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.331e-05/0.5237, allocations: 12 kB / 496.2 MB, free: 1.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003493/0.5241, allocations: 322.9 kB / 496.5 MB, free: 1.008 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5241, allocations: 4 kB / 496.5 MB, free: 1.004 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006197/0.5247, allocations: 163.6 kB / 496.7 MB, free: 0.8438 MB / 362.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 (VIN1.signalSource.count,VIN2.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.001539/0.5263, allocations: 1.418 MB / 498.1 MB, free: 15.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.5273, allocations: 0.6911 MB / 498.8 MB, free: 14.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5273, allocations: 0 / 498.8 MB, free: 14.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.5277, allocations: 257.6 kB / 499 MB, free: 14.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.5281, allocations: 82.41 kB / 499.1 MB, free: 14.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.5301, allocations: 0.9643 MB / 0.4883 GB, free: 13.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004007/0.5305, allocations: 0.8941 MB / 0.4892 GB, free: 12.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004455/0.531, allocations: 80.66 kB / 0.4893 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000371/0.5313, allocations: 223.4 kB / 0.4895 GB, free: 12.12 MB / 378.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5314, allocations: 0 / 0.4895 GB, free: 12.12 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03245/0.5638, allocations: 11.76 MB / 0.501 GB, free: 456 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/0.5641, allocations: 141.3 kB / 0.5011 GB, free: 252 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.167/2.731, allocations: 0 / 0.5011 GB, free: 252 kB / 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)