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.002314/0.002314, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.356/2.356, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00116/0.00116, allocations: 89.98 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.258e-05/3.269e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1042, allocations: 47.58 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4377/0.542, allocations: 79.6 MB / 448.8 MB, free: 13.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.5423, allocations: 72.52 kB / 448.8 MB, free: 13.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04897/0.5913, allocations: 10.26 MB / 459.1 MB, free: 4.828 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.191e-05/0.5914, allocations: 0 / 459.1 MB, free: 4.828 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.324e-05/0.5915, allocations: 12 kB / 459.1 MB, free: 4.816 MB / 330.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.004524/0.596, allocations: 1.08 MB / 460.2 MB, free: 3.719 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.359e-05/0.5961, allocations: 12.03 kB / 460.2 MB, free: 3.707 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003437/0.5965, allocations: 94.12 kB / 460.3 MB, free: 3.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002834/0.5968, allocations: 71.16 kB / 460.4 MB, free: 3.566 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009259/0.5977, allocations: 428.2 kB / 460.8 MB, free: 3.195 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.819e-05/0.5978, allocations: 43.62 kB / 460.8 MB, free: 3.172 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.598, allocations: 50.69 kB / 460.9 MB, free: 3.137 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002028/0.6, allocations: 0.7352 MB / 461.6 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.6001, allocations: 4 kB / 461.6 MB, free: 2.512 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.6002, allocations: 20 kB / 461.6 MB, free: 2.492 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.354e-05/0.6002, allocations: 16 kB / 461.7 MB, free: 2.477 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001992/0.6022, allocations: 0.5936 MB / 462.3 MB, free: 1.879 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00888/0.6112, allocations: 3.169 MB / 465.4 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002217/0.6134, allocations: 0.6905 MB / 466.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.6146, allocations: 302.5 kB / 466.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-05/0.6148, allocations: 20.41 kB / 466.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/0.6158, allocations: 329.3 kB / 466.7 MB, free: 13.19 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 4.739e-06/0.6159, allocations: 0 / 466.7 MB, free: 13.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.001678/0.6175, allocations: 0.5032 MB / 467.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001892/0.6178, allocations: 269.5 kB / 467.5 MB, free: 12.35 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009025/0.6187, allocations: 431.8 kB / 467.9 MB, free: 11.92 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.6188, allocations: 41.69 kB / 468 MB, free: 11.87 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003573/0.6192, allocations: 378.1 kB / 468.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000286/0.6195, allocations: 169.6 kB / 468.5 MB, free: 11.33 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.254e-05/0.6196, allocations: 16 kB / 468.5 MB, free: 11.31 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.6198, allocations: 338.8 kB / 468.9 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007998/0.6206, allocations: 249.5 kB / 469.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.6217, allocations: 0.4992 MB / 469.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008884/0.6226, allocations: 341.3 kB / 469.9 MB, free: 9.773 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.6226, allocations: 4 kB / 469.9 MB, free: 9.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002325/0.625, allocations: 0.8026 MB / 470.7 MB, free: 8.945 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.897e-05/0.6251, allocations: 63.39 kB / 470.8 MB, free: 8.871 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.887e-05/0.6251, allocations: 8 kB / 470.8 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.911e-05/0.6252, allocations: 15.95 kB / 470.8 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/0.6273, allocations: 248.1 kB / 471.1 MB, free: 8.605 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.818e-05/0.6274, allocations: 15.92 kB / 471.1 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002266/0.6297, allocations: 215.1 kB / 471.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001862/0.63, allocations: 31.98 kB / 471.3 MB, free: 8.348 MB / 346.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.0003146/0.6303, allocations: 152.7 kB / 471.5 MB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001827/0.6305, allocations: 59.34 kB / 471.5 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002584/0.6307, allocations: 69.36 kB / 471.6 MB, free: 8.066 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.6308, allocations: 4 kB / 471.6 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.6308, allocations: 3.953 kB / 471.6 MB, free: 8.059 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.6308, allocations: 0 / 471.6 MB, free: 8.059 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00453/0.6353, allocations: 1.381 MB / 473 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.6354, allocations: 0 / 473 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/0.6371, allocations: 179.8 kB / 473.2 MB, free: 6.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.592e-05/0.6372, allocations: 4 kB / 473.2 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.839e-05/0.6373, allocations: 11.98 kB / 473.2 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.6373, allocations: 0 / 473.2 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6373, allocations: 0 / 473.2 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002581/0.6399, allocations: 0.9004 MB / 474.1 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002698/0.6402, allocations: 140.3 kB / 474.2 MB, free: 5.359 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001736/0.6404, allocations: 12 kB / 474.2 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/0.642, allocations: 143.9 kB / 474.4 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/0.6422, allocations: 60.33 kB / 474.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.578e-05/0.6423, allocations: 12 kB / 474.4 MB, free: 5.137 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006701/0.643, allocations: 329.6 kB / 474.8 MB, free: 4.816 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.643, allocations: 0 / 474.8 MB, free: 4.816 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009649/0.644, allocations: 175.7 kB / 474.9 MB, free: 4.645 MB / 346.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.002976/0.647, allocations: 1.464 MB / 476.4 MB, free: 3.156 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002032/0.6491, allocations: 0.7126 MB / 477.1 MB, free: 2.422 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.6491, allocations: 0 / 477.1 MB, free: 2.422 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000796/0.6499, allocations: 278.9 kB / 477.4 MB, free: 2.145 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007958/0.6507, allocations: 77.98 kB / 477.5 MB, free: 2.066 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.6544, allocations: 0.9911 MB / 478.5 MB, free: 1.031 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.655, allocations: 0.8709 MB / 479.3 MB, free: 136 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008604/0.6559, allocations: 211.4 kB / 479.5 MB, free: 15.92 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6559, allocations: 0 / 479.5 MB, free: 15.92 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.619/3.275, allocations: 10.8 MB / 490.3 MB, free: 5.117 MB / 362.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)