Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_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.0009215/0.0009216, allocations: 96.62 kB / 16.3 MB, free: 5.996 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.001007/0.001007, allocations: 180.4 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002844, allocations: 6.906 kB / 300.8 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1155, allocations: 50.43 MB / 351.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004139/0.1197, allocations: 3.412 MB / 354.6 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.1221, allocations: 1.173 MB / 355.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004514/0.1226, allocations: 11.94 kB / 355.8 MB, free: 6.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.1227, allocations: 71.39 kB / 355.9 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000436/0.1232, allocations: 199.4 kB / 356.1 MB, free: 6.695 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005742/0.1238, allocations: 199.7 kB / 356.3 MB, free: 6.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007509/0.1245, allocations: 0.6227 MB / 356.9 MB, free: 5.875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003612/0.1249, allocations: 211.8 kB / 357.1 MB, free: 5.656 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003781/0.1253, allocations: 326.8 kB / 357.4 MB, free: 5.336 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004165/0.1257, allocations: 386.5 kB / 357.8 MB, free: 4.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.868e-05/0.1258, allocations: 52 kB / 357.9 MB, free: 4.906 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.736e-05/0.1259, allocations: 48 kB / 357.9 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.1261, allocations: 143.5 kB / 358.1 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.1262, allocations: 165.3 kB / 358.2 MB, free: 4.551 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007517/0.127, allocations: 0.9232 MB / 359.1 MB, free: 3.625 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.127, allocations: 0 / 359.1 MB, free: 3.625 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.127, allocations: 0 / 359.1 MB, free: 3.625 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.127, allocations: 0 / 359.1 MB, free: 3.625 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002809/0.1298, allocations: 1.216 MB / 360.4 MB, free: 2.344 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.1299, allocations: 11.97 kB / 360.4 MB, free: 2.332 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001547/0.1301, allocations: 102.5 kB / 360.5 MB, free: 2.223 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.1302, allocations: 91 kB / 360.6 MB, free: 2.133 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006406/0.1309, allocations: 452.6 kB / 361 MB, free: 1.648 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.376e-05/0.1309, allocations: 45.31 kB / 361 MB, free: 1.605 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.131, allocations: 60 kB / 361.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/0.1333, allocations: 1.038 MB / 362.1 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.1333, allocations: 0 / 362.1 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.612e-05/0.1334, allocations: 28 kB / 362.2 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.1334, allocations: 19.95 kB / 362.2 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003032/0.1364, allocations: 1.155 MB / 363.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005002/0.1414, allocations: 3.274 MB / 366.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/0.1438, allocations: 1.035 MB / 367.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.588e-05/0.1439, allocations: 12.42 kB / 367.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001279/0.1452, allocations: 0.5166 MB / 368.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.524e-06/0.1452, allocations: 0 / 368.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003394/0.1486, allocations: 1.267 MB / 369.4 MB, free: 8.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002168/0.1488, allocations: 372.2 kB / 369.8 MB, free: 8.492 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000901/0.1497, allocations: 0.577 MB / 370.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.006e-05/0.1498, allocations: 41.7 kB / 370.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002992/0.1501, allocations: 371.5 kB / 370.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.1503, allocations: 169.6 kB / 371 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.1503, allocations: 12 kB / 371 MB, free: 7.309 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.1505, allocations: 374.8 kB / 371.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.1517, allocations: 465.6 kB / 371.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.1532, allocations: 0.728 MB / 372.5 MB, free: 5.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.1545, allocations: 0.5247 MB / 373 MB, free: 5.094 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.1545, allocations: 7.938 kB / 373 MB, free: 5.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002913/0.1574, allocations: 1.251 MB / 374.3 MB, free: 3.812 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.981e-05/0.1575, allocations: 63.39 kB / 374.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.1575, allocations: 4 kB / 374.4 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.1576, allocations: 12 kB / 374.4 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.1586, allocations: 251.7 kB / 374.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.1586, allocations: 12 kB / 374.6 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.1597, allocations: 227 kB / 374.9 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-05/0.1598, allocations: 32 kB / 374.9 MB, free: 3.211 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.0003699/0.1602, allocations: 217.6 kB / 375.1 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.1603, allocations: 75.17 kB / 375.2 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.1604, allocations: 70.41 kB / 375.2 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.1604, allocations: 4 kB / 375.2 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.1605, allocations: 4 kB / 375.2 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1605, allocations: 0 / 375.2 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003318/0.1638, allocations: 1.794 MB / 377 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1638, allocations: 0 / 377 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007957/0.1646, allocations: 187.8 kB / 377.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.117e-06/0.1646, allocations: 3.953 kB / 377.2 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/0.1647, allocations: 8 kB / 377.2 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.686e-06/0.1647, allocations: 4 kB / 377.2 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.1647, allocations: 0 / 377.2 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00338/0.1681, allocations: 1.47 MB / 378.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.1683, allocations: 156.2 kB / 378.9 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.1684, allocations: 19.94 kB / 378.9 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008113/0.1692, allocations: 135.9 kB / 379 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.1694, allocations: 56.36 kB / 379.1 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.1695, allocations: 12 kB / 379.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00064/0.1701, allocations: 406.8 kB / 379.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1701, allocations: 0 / 379.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007345/0.1709, allocations: 179.7 kB / 379.7 MB, free: 14.34 MB / 318.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.003741/0.1746, allocations: 2.037 MB / 381.7 MB, free: 12.28 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.1773, allocations: 1.11 MB / 382.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.1774, allocations: 0 / 382.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.1785, allocations: 475.3 kB / 383.3 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006152/0.1791, allocations: 98.16 kB / 383.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01072/0.1898, allocations: 8.673 MB / 392 MB, free: 1.738 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004567/0.1903, allocations: 0.894 MB / 392.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005116/0.1909, allocations: 88.83 kB / 393 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003874/0.1913, allocations: 231.4 kB / 393.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1913, allocations: 0 / 393.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02778/0.2191, allocations: 13.01 MB / 406.2 MB, free: 3.688 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001547/0.2193, allocations: 176.8 kB / 406.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.424, allocations: 0 / 406.4 MB, free: 3.445 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)