Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_cpp_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.001642/0.001642, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.246/2.246, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001575/0.001575, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005627/0.000563, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1037, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005385/0.1091, allocations: 3.265 MB / 377.9 MB, free: 12.06 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002752/0.1119, allocations: 1.112 MB / 379 MB, free: 10.94 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003985/0.1123, allocations: 11.94 kB / 379 MB, free: 10.93 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.1125, allocations: 67.45 kB / 379.1 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005518/0.1131, allocations: 183.5 kB / 379.3 MB, free: 10.68 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006496/0.1138, allocations: 167.7 kB / 379.4 MB, free: 10.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.1148, allocations: 0.552 MB / 380 MB, free: 9.965 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004585/0.1153, allocations: 203.9 kB / 380.2 MB, free: 9.762 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004577/0.1157, allocations: 307 kB / 380.5 MB, free: 9.461 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005957/0.1163, allocations: 362.6 kB / 380.8 MB, free: 9.105 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001342/0.1165, allocations: 48 kB / 380.9 MB, free: 9.059 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001633/0.1167, allocations: 48 kB / 380.9 MB, free: 9.012 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000198/0.1169, allocations: 139.5 kB / 381.1 MB, free: 8.875 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.1171, allocations: 145.4 kB / 381.2 MB, free: 8.727 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001217/0.1183, allocations: 0.865 MB / 382.1 MB, free: 7.859 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1183, allocations: 0 / 382.1 MB, free: 7.859 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1183, allocations: 3.938 kB / 382.1 MB, free: 7.855 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.1184, allocations: 0 / 382.1 MB, free: 7.855 MB / 282.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.004549/0.1229, allocations: 1.161 MB / 383.2 MB, free: 6.629 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.968e-05/0.123, allocations: 8.031 kB / 383.2 MB, free: 6.621 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002369/0.1233, allocations: 102.5 kB / 383.3 MB, free: 6.512 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002185/0.1235, allocations: 71.16 kB / 383.4 MB, free: 6.441 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008519/0.1243, allocations: 432.8 kB / 383.8 MB, free: 5.977 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.9e-05/0.1244, allocations: 45.27 kB / 383.9 MB, free: 5.93 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001691/0.1246, allocations: 56 kB / 383.9 MB, free: 5.875 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003905/0.1285, allocations: 0.9916 MB / 384.9 MB, free: 4.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.1286, allocations: 0 / 384.9 MB, free: 4.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/0.1287, allocations: 24 kB / 385 MB, free: 4.797 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.1288, allocations: 12 kB / 385 MB, free: 4.785 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005692/0.1345, allocations: 1.132 MB / 386.1 MB, free: 3.656 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007914/0.1424, allocations: 3.134 MB / 389.2 MB, free: 396 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2624/0.4049, allocations: 1.025 MB / 390.3 MB, free: 20.33 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.405, allocations: 13.67 kB / 390.3 MB, free: 20.33 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00244/0.4075, allocations: 0.5052 MB / 390.8 MB, free: 20.27 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 4.94e-06/0.4075, allocations: 0 / 390.8 MB, free: 20.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=50): time 0.006384/0.4139, allocations: 1.261 MB / 392 MB, free: 20.22 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.4141, allocations: 271.5 kB / 392.3 MB, free: 19.91 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.4153, allocations: 0.5071 MB / 392.8 MB, free: 19.75 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001571/0.4154, allocations: 38.27 kB / 392.8 MB, free: 19.71 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002522/0.4157, allocations: 373.5 kB / 393.2 MB, free: 19.42 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.4159, allocations: 168.3 kB / 393.4 MB, free: 19.3 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-05/0.416, allocations: 18.16 kB / 393.4 MB, free: 19.29 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.241e-05/0.4161, allocations: 337.8 kB / 393.7 MB, free: 18.96 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002388/0.4185, allocations: 460.8 kB / 394.2 MB, free: 18.84 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002596/0.4211, allocations: 0.7024 MB / 394.9 MB, free: 18.4 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002532/0.4237, allocations: 0.5276 MB / 395.4 MB, free: 18.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.418e-05/0.4238, allocations: 1.031 kB / 395.4 MB, free: 18.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005701/0.4295, allocations: 1.212 MB / 396.6 MB, free: 17.74 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.077e-05/0.4296, allocations: 67.16 kB / 396.7 MB, free: 17.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/0.4296, allocations: 12.97 kB / 396.7 MB, free: 17.67 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.692e-05/0.4297, allocations: 10.97 kB / 396.7 MB, free: 17.67 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002134/0.4318, allocations: 250.5 kB / 396.9 MB, free: 17.65 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.074e-05/0.4319, allocations: 15.91 kB / 397 MB, free: 17.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002068/0.434, allocations: 217.6 kB / 397.2 MB, free: 17.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.4342, allocations: 32.16 kB / 397.2 MB, free: 17.58 MB / 282.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.0004761/0.4347, allocations: 222.1 kB / 397.4 MB, free: 17.39 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.4348, allocations: 55.38 kB / 397.5 MB, free: 17.37 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001972/0.435, allocations: 67.53 kB / 397.5 MB, free: 17.32 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.4351, allocations: 5.5 kB / 397.5 MB, free: 17.32 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.4351, allocations: 3.938 kB / 397.6 MB, free: 17.32 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.397e-06/0.4351, allocations: 2.062 kB / 397.6 MB, free: 17.32 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005994/0.4411, allocations: 1.755 MB / 399.3 MB, free: 16.51 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.4412, allocations: 0 / 399.3 MB, free: 16.51 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001955/0.4431, allocations: 180.2 kB / 399.5 MB, free: 16.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.637e-05/0.4432, allocations: 7.5 kB / 399.5 MB, free: 16.49 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.4433, allocations: 12.47 kB / 399.5 MB, free: 16.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.137e-06/0.4433, allocations: 6.734 kB / 399.5 MB, free: 16.48 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4433, allocations: 3.719 kB / 399.5 MB, free: 16.48 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006644/0.45, allocations: 1.459 MB / 401 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002809/0.4503, allocations: 135.1 kB / 401.1 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002179/0.4506, allocations: 13.19 kB / 401.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/0.4521, allocations: 137.3 kB / 401.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002483/0.4524, allocations: 58.75 kB / 401.3 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.641e-05/0.4525, allocations: 20.36 kB / 401.3 MB, free: 15.77 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008475/0.4533, allocations: 349.4 kB / 401.7 MB, free: 15.61 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4533, allocations: 1.125 kB / 401.7 MB, free: 15.61 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001057/0.4544, allocations: 173.3 kB / 401.8 MB, free: 15.57 MB / 282.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.006962/0.4614, allocations: 2.022 MB / 403.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005008/0.4665, allocations: 1.113 MB / 405 MB, free: 14.1 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.4665, allocations: 0 / 405 MB, free: 14.1 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002138/0.4687, allocations: 473.8 kB / 405.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007758/0.4695, allocations: 79.62 kB / 405.5 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/0.4846, allocations: 8.387 MB / 413.9 MB, free: 7.395 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.485, allocations: 0.8687 MB / 414.8 MB, free: 6.617 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007599/0.4858, allocations: 218.3 kB / 415 MB, free: 6.445 MB / 282.7 MB Notification: Performance of SimCode: time 1.452e-06/0.4858, allocations: 0 / 415 MB, free: 6.445 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.764/3.25, allocations: 10.83 MB / 425.8 MB, free: 11.92 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)