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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008554/0.0008555, allocations: 91.28 kB / 16.95 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009108/0.0009107, allocations: 181.5 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.439/1.439, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004679/0.0004679, allocations: 8.938 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1154, allocations: 47.58 MB / 328.4 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004044/0.1195, allocations: 3.471 MB / 331.9 MB, free: 492 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.1216, allocations: 1.076 MB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005378/0.1222, allocations: 15.94 kB / 333 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002991/0.1225, allocations: 67.45 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005017/0.123, allocations: 146.7 kB / 333.2 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005499/0.1236, allocations: 167.8 kB / 333.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008572/0.1244, allocations: 0.8392 MB / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003262/0.1248, allocations: 199.9 kB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003026/0.1251, allocations: 303 kB / 334.7 MB, free: 13.67 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003662/0.1255, allocations: 366.5 kB / 335.1 MB, free: 13.31 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.221e-05/0.1256, allocations: 48 kB / 335.1 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.713e-05/0.1256, allocations: 44 kB / 335.2 MB, free: 13.22 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.1258, allocations: 135.5 kB / 335.3 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001316/0.1259, allocations: 153.3 kB / 335.4 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006495/0.1266, allocations: 0.865 MB / 336.3 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.1266, allocations: 3.984 kB / 336.3 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1266, allocations: 0 / 336.3 MB, free: 12.06 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.1266, allocations: 0 / 336.3 MB, free: 12.06 MB / 286.1 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.002431/0.1291, allocations: 1.169 MB / 337.5 MB, free: 10.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.1291, allocations: 8.031 kB / 337.5 MB, free: 10.82 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001254/0.1292, allocations: 98.52 kB / 337.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.1294, allocations: 71.16 kB / 337.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005072/0.1299, allocations: 424.9 kB / 338.1 MB, free: 10.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.587e-05/0.1299, allocations: 41.27 kB / 338.1 MB, free: 10.14 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.951e-05/0.13, allocations: 52 kB / 338.2 MB, free: 10.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001993/0.132, allocations: 0.9994 MB / 339.2 MB, free: 9.027 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.1321, allocations: 0 / 339.2 MB, free: 9.027 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.373e-05/0.1321, allocations: 28 kB / 339.2 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.1322, allocations: 12 kB / 339.2 MB, free: 8.988 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002678/0.1348, allocations: 1.136 MB / 340.3 MB, free: 7.855 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004309/0.1392, allocations: 3.134 MB / 343.5 MB, free: 4.586 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002208/0.1414, allocations: 1.03 MB / 344.5 MB, free: 3.508 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.1425, allocations: 494.2 kB / 345 MB, free: 3.023 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.298e-05/0.1425, allocations: 12.5 kB / 345 MB, free: 3.012 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.1437, allocations: 0.5166 MB / 345.5 MB, free: 2.48 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 3.216e-06/0.1437, allocations: 0 / 345.5 MB, free: 2.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.003019/0.1467, allocations: 1.26 MB / 346.8 MB, free: 1.215 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.1469, allocations: 269.4 kB / 347 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007455/0.1477, allocations: 0.5017 MB / 347.5 MB, free: 388 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.353e-05/0.1477, allocations: 37.7 kB / 347.6 MB, free: 344 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/0.148, allocations: 339.5 kB / 347.9 MB, free: 0 / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.1482, allocations: 173.7 kB / 348.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.1482, allocations: 16 kB / 348.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.1484, allocations: 362.8 kB / 348.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.1496, allocations: 461.6 kB / 348.9 MB, free: 15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.1511, allocations: 0.7081 MB / 349.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.1524, allocations: 0.5208 MB / 350.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.1524, allocations: 0 / 350.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003088/0.1555, allocations: 1.243 MB / 351.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.193e-05/0.1556, allocations: 63.39 kB / 351.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/0.1556, allocations: 8 kB / 351.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.236e-05/0.1557, allocations: 12 kB / 351.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.1567, allocations: 256 kB / 351.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.591e-05/0.1568, allocations: 8 kB / 351.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001081/0.1579, allocations: 219.1 kB / 351.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.04e-05/0.1579, allocations: 36 kB / 352 MB, free: 11.78 MB / 302.1 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.0003924/0.1583, allocations: 213.5 kB / 352.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.1585, allocations: 55.34 kB / 352.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001929/0.1587, allocations: 73.58 kB / 352.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.1587, allocations: 4 kB / 352.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.64e-05/0.1587, allocations: 0 / 352.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.1588, allocations: 7.922 kB / 352.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003854/0.1626, allocations: 1.759 MB / 354.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.1626, allocations: 0 / 354.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009997/0.1637, allocations: 175.8 kB / 354.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.85e-05/0.1637, allocations: 3.953 kB / 354.2 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.248e-05/0.1638, allocations: 15.98 kB / 354.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.1638, allocations: 8 kB / 354.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1638, allocations: 0 / 354.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003445/0.1673, allocations: 1.462 MB / 355.7 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002169/0.1675, allocations: 140.3 kB / 355.9 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.1676, allocations: 11.95 kB / 355.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007557/0.1684, allocations: 143.9 kB / 356 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.1686, allocations: 52.36 kB / 356.1 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.271e-05/0.1686, allocations: 15.98 kB / 356.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005372/0.1692, allocations: 350.8 kB / 356.4 MB, free: 7.215 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1692, allocations: 0 / 356.4 MB, free: 7.215 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007233/0.1699, allocations: 171.7 kB / 356.6 MB, free: 7.047 MB / 302.1 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.003829/0.1738, allocations: 2.023 MB / 358.6 MB, free: 4.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002711/0.1765, allocations: 1.106 MB / 359.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.1765, allocations: 0 / 359.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.1776, allocations: 474.9 kB / 360.2 MB, free: 3.406 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000617/0.1783, allocations: 97.75 kB / 360.3 MB, free: 3.312 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008721/0.187, allocations: 4.3 MB / 364.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/0.1875, allocations: 0.8552 MB / 365.4 MB, free: 13.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005067/0.1881, allocations: 76.66 kB / 365.5 MB, free: 13.9 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000411/0.1885, allocations: 207.4 kB / 365.7 MB, free: 13.7 MB / 318.1 MB Notification: Performance of SimCode: time 1.202e-06/0.1885, allocations: 0 / 365.7 MB, free: 13.7 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03063/0.2191, allocations: 12.03 MB / 377.7 MB, free: 1.664 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002636/0.2195, allocations: 173.8 kB / 377.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.516/2.736, allocations: 0 / 377.9 MB, free: 1.43 MB / 318.1 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) Environment - environmentSimulation: