Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001481/0.001481, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.937/1.937, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001637/0.001637, allocations: 94.34 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003758/0.0003758, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3211, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1268/0.448, allocations: 79.69 MB / 454.3 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.4482, allocations: 71.97 kB / 454.4 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04808/0.4963, allocations: 10.28 MB / 464.7 MB, free: 6.586 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4964, allocations: 0 / 464.7 MB, free: 6.586 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.201e-05/0.4965, allocations: 12 kB / 464.7 MB, free: 6.574 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.004619/0.5011, allocations: 1.143 MB / 465.8 MB, free: 5.367 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.5012, allocations: 8.031 kB / 465.8 MB, free: 5.359 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003242/0.5015, allocations: 102.5 kB / 465.9 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002213/0.5017, allocations: 75.09 kB / 466 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008676/0.5026, allocations: 428.8 kB / 466.4 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.309e-05/0.5027, allocations: 41.31 kB / 466.5 MB, free: 4.672 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.5029, allocations: 52 kB / 466.5 MB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004106/0.507, allocations: 1.003 MB / 467.5 MB, free: 3.559 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.859e-05/0.5071, allocations: 0 / 467.5 MB, free: 3.559 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001514/0.5072, allocations: 24 kB / 467.5 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.5073, allocations: 12 kB / 467.5 MB, free: 3.523 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005966/0.5133, allocations: 1.128 MB / 468.7 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00828/0.5216, allocations: 3.173 MB / 471.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004608/0.5262, allocations: 1.031 MB / 472.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001053/0.5264, allocations: 16.41 kB / 472.9 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002405/0.5288, allocations: 0.5088 MB / 473.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.487e-06/0.5288, allocations: 4 kB / 473.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.006307/0.5351, allocations: 1.26 MB / 474.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001831/0.5354, allocations: 265.5 kB / 474.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.5365, allocations: 460.9 kB / 475.4 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001509/0.5367, allocations: 37.7 kB / 475.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003438/0.537, allocations: 378.1 kB / 475.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000235/0.5373, allocations: 169.6 kB / 476 MB, free: 10.85 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.25e-05/0.5374, allocations: 16 kB / 476 MB, free: 10.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.5375, allocations: 334.8 kB / 476.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002374/0.5399, allocations: 461.7 kB / 476.7 MB, free: 10.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002671/0.5426, allocations: 0.7081 MB / 477.5 MB, free: 9.227 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002499/0.5451, allocations: 0.5208 MB / 478 MB, free: 8.695 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.5452, allocations: 4 kB / 478 MB, free: 8.691 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005549/0.5507, allocations: 1.212 MB / 479.2 MB, free: 7.457 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.736e-05/0.5509, allocations: 67.39 kB / 479.3 MB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/0.5509, allocations: 8 kB / 479.3 MB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.488e-05/0.5509, allocations: 12 kB / 479.3 MB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002155/0.5531, allocations: 247.9 kB / 479.5 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.667e-05/0.5532, allocations: 15.94 kB / 479.5 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002119/0.5553, allocations: 223 kB / 479.8 MB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/0.5554, allocations: 31.98 kB / 479.8 MB, free: 6.852 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 () * Number of clocked 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.0005568/0.556, allocations: 213.6 kB / 480 MB, free: 6.633 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.5562, allocations: 55.34 kB / 480 MB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002256/0.5564, allocations: 69.58 kB / 480.1 MB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.5565, allocations: 4 kB / 480.1 MB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.5565, allocations: 4 kB / 480.1 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.5565, allocations: 7.938 kB / 480.1 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005986/0.5625, allocations: 1.751 MB / 481.9 MB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.5625, allocations: 0 / 481.9 MB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001655/0.5642, allocations: 179.8 kB / 482.1 MB, free: 4.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-06/0.5642, allocations: 0 / 482.1 MB, free: 4.504 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.761e-05/0.5643, allocations: 8 kB / 482.1 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.5643, allocations: 4 kB / 482.1 MB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5643, allocations: 0 / 482.1 MB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006591/0.5709, allocations: 1.466 MB / 483.5 MB, free: 3.008 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002943/0.5713, allocations: 136.4 kB / 483.7 MB, free: 2.855 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.5715, allocations: 15.95 kB / 483.7 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/0.5731, allocations: 151.8 kB / 483.8 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/0.5733, allocations: 56.3 kB / 483.9 MB, free: 2.637 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.647e-05/0.5734, allocations: 16 kB / 483.9 MB, free: 2.621 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008388/0.5742, allocations: 346.8 kB / 484.2 MB, free: 2.285 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5743, allocations: 0 / 484.2 MB, free: 2.285 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009099/0.5752, allocations: 171.7 kB / 484.4 MB, free: 2.117 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) * Number of clocked states: 0 () * 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.007018/0.5822, allocations: 2.032 MB / 486.4 MB, free: 60 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005016/0.5873, allocations: 1.107 MB / 487.5 MB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.5873, allocations: 4.188 kB / 487.5 MB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002186/0.5895, allocations: 470.2 kB / 488 MB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007775/0.5903, allocations: 87.62 kB / 488.1 MB, free: 14.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01654/0.6069, allocations: 8.384 MB / 496.5 MB, free: 5.812 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005819/0.6075, allocations: 0.871 MB / 497.3 MB, free: 4.918 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008318/0.6083, allocations: 203.4 kB / 497.5 MB, free: 4.719 MB / 378.7 MB Notification: Performance of SimCode: time 3.015e-06/0.6084, allocations: 3.938 kB / 497.6 MB, free: 4.715 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.855/3.463, allocations: 10.83 MB / 0.4965 GB, free: 109.4 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)