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.0008356/0.0008358, allocations: 87.64 kB / 16.31 MB, free: 6.457 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.0008514/0.0008518, allocations: 183.4 kB / 17.21 MB, free: 6.32 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.527/1.527, allocations: 223.2 MB / 241.2 MB, free: 5.297 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002527, allocations: 6.781 kB / 300.9 MB, free: 5.613 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 50.43 MB / 351.3 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004005/0.11, allocations: 3.633 MB / 355 MB, free: 7.738 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.1123, allocations: 1.145 MB / 356.1 MB, free: 6.586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002905/0.1126, allocations: 11.94 kB / 356.1 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002079/0.1128, allocations: 75.39 kB / 356.2 MB, free: 6.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003236/0.1131, allocations: 146.7 kB / 356.3 MB, free: 6.355 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005646/0.1137, allocations: 195.8 kB / 356.5 MB, free: 6.164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008589/0.1146, allocations: 0.9488 MB / 357.5 MB, free: 5.211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.1149, allocations: 207.8 kB / 357.7 MB, free: 4.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003138/0.1152, allocations: 322.9 kB / 358 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003854/0.1156, allocations: 382.4 kB / 358.4 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.516e-05/0.1157, allocations: 52 kB / 358.4 MB, free: 4.254 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.162e-05/0.1158, allocations: 52 kB / 358.5 MB, free: 4.203 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.116, allocations: 147.4 kB / 358.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.1161, allocations: 165.3 kB / 358.8 MB, free: 3.891 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007448/0.1169, allocations: 0.9271 MB / 359.7 MB, free: 2.961 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.1169, allocations: 0 / 359.7 MB, free: 2.961 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1169, allocations: 3.938 kB / 359.7 MB, free: 2.957 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1169, allocations: 0 / 359.7 MB, free: 2.957 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.002511/0.1194, allocations: 1.212 MB / 360.9 MB, free: 1.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.1195, allocations: 8.031 kB / 360.9 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000131/0.1196, allocations: 102.5 kB / 361 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.1198, allocations: 87.02 kB / 361.1 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005194/0.1203, allocations: 464.7 kB / 361.6 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.211e-05/0.1203, allocations: 41.31 kB / 361.6 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.736e-05/0.1204, allocations: 56 kB / 361.7 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.1225, allocations: 1.038 MB / 362.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.1225, allocations: 3.984 kB / 362.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.988e-05/0.1226, allocations: 28 kB / 362.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.1226, allocations: 19.95 kB / 362.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002706/0.1253, allocations: 1.159 MB / 363.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004584/0.1299, allocations: 3.27 MB / 367.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002167/0.1321, allocations: 1.028 MB / 368.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.1332, allocations: 0.4905 MB / 368.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.373e-05/0.1333, allocations: 16.48 kB / 368.7 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001167/0.1344, allocations: 0.5198 MB / 369.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.665e-06/0.1345, allocations: 0 / 369.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003113/0.1376, allocations: 1.263 MB / 370.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001825/0.1378, allocations: 384.2 kB / 370.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007774/0.1386, allocations: 0.5654 MB / 371.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.75e-05/0.1386, allocations: 41.7 kB / 371.5 MB, free: 6.707 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/0.1389, allocations: 375.4 kB / 371.9 MB, free: 6.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.139, allocations: 165.7 kB / 372 MB, free: 6.168 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.65e-05/0.1391, allocations: 12 kB / 372 MB, free: 6.156 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1392, allocations: 378.8 kB / 372.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.1403, allocations: 461.6 kB / 372.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.1416, allocations: 0.728 MB / 373.6 MB, free: 4.477 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/0.1429, allocations: 0.5324 MB / 374.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.1429, allocations: 4 kB / 374.1 MB, free: 3.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002649/0.1455, allocations: 1.239 MB / 375.3 MB, free: 2.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.121e-05/0.1456, allocations: 71.39 kB / 375.4 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.1456, allocations: 4 kB / 375.4 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.1457, allocations: 12 kB / 375.4 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009582/0.1466, allocations: 255.9 kB / 375.7 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.909e-05/0.1467, allocations: 15.95 kB / 375.7 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009647/0.1476, allocations: 223 kB / 375.9 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.905e-05/0.1477, allocations: 36 kB / 376 MB, free: 2.051 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.0003239/0.148, allocations: 217.6 kB / 376.2 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.1481, allocations: 79.22 kB / 376.2 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/0.1483, allocations: 70.41 kB / 376.3 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1483, allocations: 4 kB / 376.3 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.1483, allocations: 0 / 376.3 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.475e-06/0.1483, allocations: 3.953 kB / 376.3 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003174/0.1515, allocations: 1.798 MB / 378.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1515, allocations: 0 / 378.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007446/0.1523, allocations: 179.8 kB / 378.3 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.1523, allocations: 0 / 378.3 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.421e-05/0.1524, allocations: 11.98 kB / 378.3 MB, free: 15.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.1524, allocations: 8 kB / 378.3 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1524, allocations: 3.938 kB / 378.3 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003201/0.1556, allocations: 1.466 MB / 379.8 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.1557, allocations: 144.2 kB / 379.9 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.819e-05/0.1559, allocations: 19.89 kB / 379.9 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006939/0.1566, allocations: 143.9 kB / 380.1 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.1567, allocations: 52.36 kB / 380.1 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.1568, allocations: 19.98 kB / 380.2 MB, free: 13.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005611/0.1573, allocations: 390.8 kB / 380.5 MB, free: 13.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1573, allocations: 0 / 380.5 MB, free: 13.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000657/0.158, allocations: 187.7 kB / 380.7 MB, free: 13.18 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.003502/0.1615, allocations: 2.025 MB / 382.7 MB, free: 11.13 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002539/0.1641, allocations: 1.114 MB / 383.9 MB, free: 9.996 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.1641, allocations: 7.938 kB / 383.9 MB, free: 9.988 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.1651, allocations: 463.2 kB / 384.3 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006932/0.1658, allocations: 98.22 kB / 384.4 MB, free: 9.441 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00849/0.1743, allocations: 4.636 MB / 389 MB, free: 4.668 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000542/0.1749, allocations: 0.8901 MB / 389.9 MB, free: 3.746 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004795/0.1754, allocations: 80.86 kB / 390 MB, free: 3.668 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004167/0.1758, allocations: 231.4 kB / 390.2 MB, free: 3.441 MB / 318.1 MB Notification: Performance of SimCode: time 2.324e-06/0.1758, allocations: 0 / 390.2 MB, free: 3.441 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.2024, allocations: 13.12 MB / 403.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000162/0.2026, allocations: 180.6 kB / 403.5 MB, free: 6.266 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.27/2.473, allocations: 3.625 kB / 403.5 MB, free: 6.266 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)