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.001001/0.001001, allocations: 101 kB / 16.94 MB, free: 5.984 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.001117/0.001118, allocations: 178.1 kB / 17.82 MB, free: 5.652 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.418/1.418, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004527/0.0004527, allocations: 12 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1085, allocations: 47.57 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003969/0.1125, allocations: 3.266 MB / 331.7 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.1145, allocations: 1.108 MB / 332.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003348/0.1149, allocations: 16 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.115, allocations: 71.39 kB / 332.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004594/0.1155, allocations: 179.4 kB / 333 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005187/0.116, allocations: 175.7 kB / 333.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007404/0.1168, allocations: 0.552 MB / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003636/0.1172, allocations: 203.9 kB / 334 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003754/0.1176, allocations: 299 kB / 334.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003852/0.1179, allocations: 366.6 kB / 334.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.355e-05/0.118, allocations: 44 kB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.1182, allocations: 48 kB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.1183, allocations: 139.5 kB / 334.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.1184, allocations: 145.4 kB / 335 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007692/0.1192, allocations: 0.8767 MB / 335.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1192, allocations: 0 / 335.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1192, allocations: 0 / 335.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.1193, allocations: 0 / 335.9 MB, free: 12.51 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.002675/0.1219, allocations: 1.161 MB / 337 MB, free: 11.29 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.122, allocations: 8.031 kB / 337 MB, free: 11.28 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001538/0.1221, allocations: 102.5 kB / 337.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.1223, allocations: 71.16 kB / 337.2 MB, free: 11.1 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005423/0.1228, allocations: 420.9 kB / 337.6 MB, free: 10.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.119e-05/0.1229, allocations: 49.27 kB / 337.7 MB, free: 10.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.419e-05/0.123, allocations: 52 kB / 337.7 MB, free: 10.54 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002214/0.1252, allocations: 0.9916 MB / 338.7 MB, free: 9.488 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.1252, allocations: 4 kB / 338.7 MB, free: 9.484 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-05/0.1253, allocations: 24 kB / 338.7 MB, free: 9.461 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.1254, allocations: 12 kB / 338.7 MB, free: 9.449 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003096/0.1285, allocations: 1.128 MB / 339.9 MB, free: 8.324 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005111/0.1336, allocations: 3.141 MB / 343 MB, free: 5.047 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002562/0.1362, allocations: 1.03 MB / 344 MB, free: 3.969 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.095e-05/0.1362, allocations: 12.58 kB / 344.1 MB, free: 3.957 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001325/0.1376, allocations: 0.5088 MB / 344.6 MB, free: 3.438 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 3.547e-06/0.1376, allocations: 0 / 344.6 MB, free: 3.438 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.003408/0.141, allocations: 1.26 MB / 345.8 MB, free: 2.172 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00018/0.1412, allocations: 269.5 kB / 346.1 MB, free: 1.848 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007794/0.142, allocations: 0.5094 MB / 346.6 MB, free: 1.328 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.599e-05/0.1421, allocations: 37.7 kB / 346.6 MB, free: 1.285 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002808/0.1424, allocations: 339.6 kB / 347 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.1425, allocations: 165.6 kB / 347.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.1426, allocations: 16 kB / 347.1 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.1428, allocations: 362.8 kB / 347.5 MB, free: 416 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.1441, allocations: 461.7 kB / 347.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.1456, allocations: 0.7003 MB / 348.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.147, allocations: 0.5324 MB / 349.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.147, allocations: 4 kB / 349.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003058/0.1501, allocations: 1.243 MB / 350.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.334e-05/0.1501, allocations: 67.39 kB / 350.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.1502, allocations: 8 kB / 350.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-05/0.1502, allocations: 12 kB / 350.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.1513, allocations: 256 kB / 350.8 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.217e-05/0.1513, allocations: 15.94 kB / 350.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.1525, allocations: 215.1 kB / 351 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.617e-05/0.1526, allocations: 32 kB / 351 MB, free: 12.73 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.0003676/0.153, allocations: 221.6 kB / 351.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.975e-05/0.1531, allocations: 55.34 kB / 351.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001399/0.1532, allocations: 65.58 kB / 351.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.1532, allocations: 4 kB / 351.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.1533, allocations: 0 / 351.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.1533, allocations: 7.984 kB / 351.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003416/0.1567, allocations: 1.755 MB / 353.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.1567, allocations: 0 / 353.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008451/0.1576, allocations: 175.8 kB / 353.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.345e-05/0.1576, allocations: 4 kB / 353.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/0.1576, allocations: 19.94 kB / 353.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.1577, allocations: 4 kB / 353.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1577, allocations: 3.938 kB / 353.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003418/0.1611, allocations: 1.462 MB / 354.8 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/0.1613, allocations: 140.3 kB / 354.9 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.763e-05/0.1614, allocations: 12 kB / 354.9 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008156/0.1622, allocations: 139.9 kB / 355.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.1623, allocations: 56.36 kB / 355.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.1624, allocations: 19.92 kB / 355.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005367/0.1629, allocations: 342.9 kB / 355.5 MB, free: 8.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1629, allocations: 0 / 355.5 MB, free: 8.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006854/0.1636, allocations: 175.7 kB / 355.7 MB, free: 7.992 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.003926/0.1676, allocations: 2.019 MB / 357.7 MB, free: 5.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002805/0.1704, allocations: 1.11 MB / 358.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.1704, allocations: 0 / 358.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.1716, allocations: 471 kB / 359.2 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005453/0.1722, allocations: 89.81 kB / 359.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.1823, allocations: 8.358 MB / 367.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004559/0.1828, allocations: 0.8707 MB / 368.6 MB, free: 10.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004743/0.1833, allocations: 80.66 kB / 368.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/0.1837, allocations: 199.4 kB / 368.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of SimCode: time 1.463e-06/0.1837, allocations: 0 / 368.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1987/0.3824, allocations: 11.89 MB / 380.7 MB, free: 53.2 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001292/0.3826, allocations: 177.8 kB / 380.9 MB, free: 52.96 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.996/2.379, allocations: 0 / 380.9 MB, free: 52.96 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: