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.001014/0.001015, allocations: 181 kB / 17.01 MB, free: 5.121 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.417/1.417, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008336/0.0008333, allocations: 92.11 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002781/0.0002782, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2659, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09323/0.3592, allocations: 79.69 MB / 455.6 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.3595, allocations: 71.97 kB / 455.7 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0274/0.3869, allocations: 10.27 MB / 465.9 MB, free: 6.586 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3869, allocations: 0 / 465.9 MB, free: 6.586 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.906e-05/0.387, allocations: 12 kB / 465.9 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.002886/0.3899, allocations: 1.14 MB / 467.1 MB, free: 5.371 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3899, allocations: 11.97 kB / 467.1 MB, free: 5.359 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002276/0.3902, allocations: 102.5 kB / 467.2 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002292/0.3904, allocations: 75.16 kB / 467.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006554/0.3911, allocations: 428.7 kB / 467.7 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.132e-05/0.3911, allocations: 41.31 kB / 467.7 MB, free: 4.672 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.3913, allocations: 55.98 kB / 467.8 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002109/0.3934, allocations: 0.9955 MB / 468.8 MB, free: 3.562 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.3934, allocations: 0 / 468.8 MB, free: 3.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.262e-05/0.3935, allocations: 28 kB / 468.8 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.3935, allocations: 12 kB / 468.8 MB, free: 3.523 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002834/0.3964, allocations: 1.128 MB / 470 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004948/0.4013, allocations: 3.17 MB / 473.1 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002316/0.4037, allocations: 1.031 MB / 474.2 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.258e-05/0.4037, allocations: 12.42 kB / 474.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/0.405, allocations: 0.5088 MB / 474.7 MB, free: 13.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.956e-06/0.405, allocations: 0 / 474.7 MB, free: 13.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.003536/0.4085, allocations: 1.26 MB / 475.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/0.4087, allocations: 277.4 kB / 476.2 MB, free: 11.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006493/0.4093, allocations: 461 kB / 476.7 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.587e-05/0.4094, allocations: 41.64 kB / 476.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.4097, allocations: 331.6 kB / 477 MB, free: 11.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.4098, allocations: 165.6 kB / 477.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-05/0.4099, allocations: 16 kB / 477.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.4101, allocations: 366.8 kB / 477.6 MB, free: 10.51 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.4112, allocations: 461.7 kB / 478 MB, free: 10.06 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.4125, allocations: 0.7042 MB / 478.7 MB, free: 9.242 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.4137, allocations: 0.5247 MB / 479.2 MB, free: 8.707 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.4137, allocations: 0 / 479.2 MB, free: 8.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00277/0.4165, allocations: 1.24 MB / 480.5 MB, free: 7.445 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.319e-05/0.4166, allocations: 59.41 kB / 480.5 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.4166, allocations: 12.28 kB / 480.5 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.31e-05/0.4166, allocations: 12 kB / 480.6 MB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.4177, allocations: 251.6 kB / 480.8 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.4177, allocations: 11.95 kB / 480.8 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.4188, allocations: 223 kB / 481 MB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.555e-05/0.4189, allocations: 35.94 kB / 481.1 MB, free: 6.84 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.0003493/0.4192, allocations: 221.6 kB / 481.3 MB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.773e-05/0.4193, allocations: 63.19 kB / 481.3 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001498/0.4195, allocations: 65.59 kB / 481.4 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.4195, allocations: 4 kB / 481.4 MB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.4195, allocations: 3.984 kB / 481.4 MB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4195, allocations: 3.953 kB / 481.4 MB, free: 6.469 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003294/0.4228, allocations: 1.747 MB / 483.2 MB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.4228, allocations: 0 / 483.2 MB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008163/0.4237, allocations: 179.8 kB / 483.3 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.4237, allocations: 4 kB / 483.3 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.4237, allocations: 15.98 kB / 483.4 MB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.4237, allocations: 80 / 483.4 MB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4237, allocations: 7.984 kB / 483.4 MB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003352/0.4271, allocations: 1.462 MB / 484.8 MB, free: 2.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/0.4273, allocations: 136.4 kB / 485 MB, free: 2.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.703e-05/0.4274, allocations: 15.95 kB / 485 MB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007949/0.4282, allocations: 139.9 kB / 485.1 MB, free: 2.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.4284, allocations: 56.3 kB / 485.2 MB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-05/0.4284, allocations: 19.98 kB / 485.2 MB, free: 2.602 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00053/0.429, allocations: 342.9 kB / 485.5 MB, free: 2.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.429, allocations: 4 kB / 485.5 MB, free: 2.266 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006525/0.4296, allocations: 179.7 kB / 485.7 MB, free: 2.09 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.003651/0.4333, allocations: 2.023 MB / 487.7 MB, free: 40 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00258/0.4359, allocations: 1.11 MB / 488.8 MB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.4359, allocations: 4 kB / 488.8 MB, free: 14.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.437, allocations: 475.3 kB / 489.3 MB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.4375, allocations: 88 kB / 489.4 MB, free: 14.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009792/0.4473, allocations: 8.347 MB / 497.7 MB, free: 5.824 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004223/0.4478, allocations: 0.871 MB / 498.6 MB, free: 4.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004814/0.4483, allocations: 72.66 kB / 498.7 MB, free: 4.855 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003455/0.4486, allocations: 203.4 kB / 498.9 MB, free: 4.656 MB / 378.7 MB Notification: Performance of SimCode: time 2.254e-06/0.4486, allocations: 0 / 498.9 MB, free: 4.656 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1998/0.6484, allocations: 11.92 MB / 0.4988 GB, free: 110.7 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/0.6486, allocations: 172.2 kB / 0.499 GB, free: 110.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.454/3.103, allocations: 0 / 0.499 GB, free: 110.4 MB / 378.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)