Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_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.001002/0.001002, allocations: 172.3 kB / 14.1 MB, free: 1.223 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.35/1.35, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008399/0.0008399, allocations: 86.64 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.907e-05/2.909e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0765/0.07655, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2701/0.3467, allocations: 79.6 MB / 449.7 MB, free: 13.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.3469, allocations: 69.84 kB / 449.8 MB, free: 13.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02646/0.3734, allocations: 10.26 MB / 460 MB, free: 4.863 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3735, allocations: 4 kB / 460 MB, free: 4.859 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.547e-05/0.3735, allocations: 12 kB / 460.1 MB, free: 4.848 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.002217/0.3757, allocations: 1.078 MB / 461.1 MB, free: 3.707 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3758, allocations: 16.03 kB / 461.1 MB, free: 3.691 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.3759, allocations: 94.52 kB / 461.2 MB, free: 3.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.376, allocations: 71.16 kB / 461.3 MB, free: 3.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005366/0.3766, allocations: 431.2 kB / 461.7 MB, free: 3.059 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.946e-05/0.3766, allocations: 41.31 kB / 461.8 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.3767, allocations: 52 kB / 461.8 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.3779, allocations: 0.7264 MB / 462.5 MB, free: 2.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.3779, allocations: 4 kB / 462.6 MB, free: 2.176 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.812e-05/0.378, allocations: 24 kB / 462.6 MB, free: 2.152 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/0.378, allocations: 16 kB / 462.6 MB, free: 2.137 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.379, allocations: 0.6091 MB / 463.2 MB, free: 1.523 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004307/0.3833, allocations: 3.158 MB / 466.4 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.3844, allocations: 0.6866 MB / 467 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005359/0.385, allocations: 306.5 kB / 467.3 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.428e-05/0.385, allocations: 20.56 kB / 467.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005416/0.3856, allocations: 321.4 kB / 467.7 MB, free: 12.85 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.3856, allocations: 0 / 467.7 MB, free: 12.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.0009284/0.3865, allocations: 0.511 MB / 468.2 MB, free: 12.33 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.3867, allocations: 269.5 kB / 468.5 MB, free: 12.01 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004836/0.3872, allocations: 431.8 kB / 468.9 MB, free: 11.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.387e-05/0.3872, allocations: 37.7 kB / 468.9 MB, free: 11.53 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002273/0.3875, allocations: 335.6 kB / 469.2 MB, free: 11.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.3876, allocations: 173.5 kB / 469.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.3877, allocations: 16 kB / 469.4 MB, free: 11.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3878, allocations: 370.8 kB / 469.8 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004127/0.3882, allocations: 249.6 kB / 470 MB, free: 10.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005899/0.3888, allocations: 0.4953 MB / 470.5 MB, free: 9.781 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004823/0.3893, allocations: 336.9 kB / 470.9 MB, free: 9.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.3893, allocations: 4 kB / 470.9 MB, free: 9.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001316/0.3907, allocations: 0.8223 MB / 471.7 MB, free: 8.598 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.933e-05/0.3907, allocations: 67.39 kB / 471.7 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3908, allocations: 8.062 kB / 471.8 MB, free: 8.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.3908, allocations: 12 kB / 471.8 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.3918, allocations: 251.6 kB / 472 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.486e-05/0.3919, allocations: 15.98 kB / 472 MB, free: 8.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.3929, allocations: 215 kB / 472.2 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.641e-05/0.393, allocations: 43.94 kB / 472.3 MB, free: 7.984 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.0001678/0.3932, allocations: 144.8 kB / 472.4 MB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.419e-05/0.3933, allocations: 59.34 kB / 472.5 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001618/0.3935, allocations: 65.3 kB / 472.5 MB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3935, allocations: 4 kB / 472.5 MB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.3935, allocations: 3.953 kB / 472.5 MB, free: 7.707 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.3935, allocations: 11.97 kB / 472.6 MB, free: 7.695 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.3954, allocations: 1.385 MB / 473.9 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3954, allocations: 0 / 473.9 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007953/0.3962, allocations: 175.8 kB / 474.1 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.135e-06/0.3962, allocations: 8 kB / 474.1 MB, free: 6.078 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.435e-05/0.3963, allocations: 12 kB / 474.1 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3963, allocations: 3.938 kB / 474.1 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3963, allocations: 0 / 474.1 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.3976, allocations: 0.8888 MB / 475 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.3978, allocations: 144.3 kB / 475.2 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.645e-05/0.3979, allocations: 12 kB / 475.2 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007565/0.3986, allocations: 139.9 kB / 475.3 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.3988, allocations: 60.34 kB / 475.4 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-05/0.3988, allocations: 12 kB / 475.4 MB, free: 4.777 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003422/0.3992, allocations: 333.6 kB / 475.7 MB, free: 4.453 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3992, allocations: 0 / 475.7 MB, free: 4.453 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005302/0.3997, allocations: 171.8 kB / 475.9 MB, free: 4.285 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.001552/0.4013, allocations: 1.465 MB / 477.3 MB, free: 2.793 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.4024, allocations: 0.7154 MB / 478.1 MB, free: 2.055 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4024, allocations: 4 kB / 478.1 MB, free: 2.051 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004434/0.4028, allocations: 278.5 kB / 478.3 MB, free: 1.773 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004121/0.4032, allocations: 81.05 kB / 478.4 MB, free: 1.695 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.4053, allocations: 0.9513 MB / 479.4 MB, free: 0.707 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.4057, allocations: 0.8709 MB / 480.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000418/0.4061, allocations: 80.64 kB / 480.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003571/0.4065, allocations: 207.4 kB / 480.5 MB, free: 15.53 MB / 362.7 MB Notification: Performance of SimCode: time 5e-07/0.4065, allocations: 3.938 kB / 480.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02434/0.4308, allocations: 12.01 MB / 492.5 MB, free: 3.5 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.4311, allocations: 154.6 kB / 492.7 MB, free: 3.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/2.581, allocations: 0 / 492.7 MB, free: 3.27 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)