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.001451/0.001451, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.09/2.09, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 95.98 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.332e-05/3.333e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3373, allocations: 47.56 MB / 362.4 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1357/0.4731, allocations: 78.94 MB / 441.4 MB, free: 7.359 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002995/0.4735, allocations: 67.95 kB / 441.4 MB, free: 7.293 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04887/0.5224, allocations: 10.18 MB / 451.6 MB, free: 13.14 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5224, allocations: 0 / 451.6 MB, free: 13.14 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.033e-05/0.5225, allocations: 16 kB / 451.6 MB, free: 13.12 MB / 347.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.004499/0.527, allocations: 1.08 MB / 452.7 MB, free: 11.98 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.434e-05/0.5271, allocations: 8.031 kB / 452.7 MB, free: 11.98 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004072/0.5275, allocations: 79.16 kB / 452.8 MB, free: 11.9 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009121/0.5285, allocations: 419.3 kB / 453.2 MB, free: 11.45 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.598e-05/0.5285, allocations: 20 kB / 453.2 MB, free: 11.43 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/0.5287, allocations: 35.94 kB / 453.3 MB, free: 11.39 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001733/0.5305, allocations: 0.5533 MB / 453.8 MB, free: 10.84 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.5322, allocations: 0.658 MB / 454.5 MB, free: 10.12 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.5323, allocations: 0 / 454.5 MB, free: 10.12 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.5324, allocations: 8 kB / 454.5 MB, free: 10.11 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.336e-05/0.5324, allocations: 13.59 kB / 454.5 MB, free: 10.1 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008317/0.5407, allocations: 3.072 MB / 457.6 MB, free: 6.918 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.5427, allocations: 0.6625 MB / 458.2 MB, free: 6.207 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009285/0.5436, allocations: 286.5 kB / 458.5 MB, free: 5.926 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.982e-05/0.5437, allocations: 16.42 kB / 458.5 MB, free: 5.906 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000841/0.5446, allocations: 308.5 kB / 458.8 MB, free: 5.594 MB / 347.1 MB Notification: Performance of pre-optimization done (n=50): time 4.018e-06/0.5446, allocations: 0 / 458.8 MB, free: 5.594 MB / 347.1 MB Notification: Performance of matching and sorting (n=50): time 0.001496/0.5461, allocations: 487.4 kB / 459.3 MB, free: 5.113 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/0.5463, allocations: 273.5 kB / 459.6 MB, free: 4.781 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008007/0.5471, allocations: 405 kB / 460 MB, free: 4.379 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.5472, allocations: 25.7 kB / 460 MB, free: 4.348 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000344/0.5476, allocations: 378 kB / 460.4 MB, free: 3.977 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.5478, allocations: 169.5 kB / 460.5 MB, free: 3.809 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.808e-05/0.5479, allocations: 0 / 460.5 MB, free: 3.809 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.5481, allocations: 342.8 kB / 460.9 MB, free: 3.465 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006806/0.5488, allocations: 235.9 kB / 461.1 MB, free: 3.234 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009192/0.5497, allocations: 485.6 kB / 461.6 MB, free: 2.648 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007231/0.5505, allocations: 258.8 kB / 461.8 MB, free: 2.398 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.5505, allocations: 4 kB / 461.8 MB, free: 2.395 MB / 347.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002056/0.5526, allocations: 0.6826 MB / 462.5 MB, free: 1.703 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.398e-05/0.5527, allocations: 63.39 kB / 462.6 MB, free: 1.629 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.5527, allocations: 8 kB / 462.6 MB, free: 1.621 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.501e-05/0.5528, allocations: 12 kB / 462.6 MB, free: 1.609 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002122/0.5549, allocations: 247.8 kB / 462.8 MB, free: 1.367 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.449e-05/0.555, allocations: 15.98 kB / 462.8 MB, free: 1.352 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.5571, allocations: 195.1 kB / 463 MB, free: 1.16 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/0.5573, allocations: 39.92 kB / 463.1 MB, free: 1.121 MB / 347.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 () * 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.0002898/0.5576, allocations: 136.7 kB / 463.2 MB, free: 0.9805 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001368/0.5589, allocations: 487.4 kB / 463.7 MB, free: 0.4961 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.5591, allocations: 55.34 kB / 463.7 MB, free: 452 kB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002331/0.5594, allocations: 61.28 kB / 463.8 MB, free: 392 kB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.5594, allocations: 10.62 kB / 463.8 MB, free: 384 kB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.914e-06/0.5594, allocations: 0 / 463.8 MB, free: 384 kB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.5595, allocations: 7.938 kB / 463.8 MB, free: 376 kB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/0.5625, allocations: 1.281 MB / 465.1 MB, free: 15.05 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.942e-06/0.5626, allocations: 0 / 465.1 MB, free: 15.05 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001633/0.5642, allocations: 179.8 kB / 465.3 MB, free: 14.87 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.334e-05/0.5643, allocations: 3.953 kB / 465.3 MB, free: 14.87 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-05/0.5644, allocations: 8 kB / 465.3 MB, free: 14.86 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.605e-06/0.5644, allocations: 4 kB / 465.3 MB, free: 14.86 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.5644, allocations: 0.9375 kB / 465.3 MB, free: 14.86 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002225/0.5666, allocations: 0.8575 MB / 466.1 MB, free: 13.98 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002481/0.5669, allocations: 132.4 kB / 466.3 MB, free: 13.83 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/0.5671, allocations: 7.953 kB / 466.3 MB, free: 13.82 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/0.5687, allocations: 135.9 kB / 466.4 MB, free: 13.69 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.5689, allocations: 56.36 kB / 466.5 MB, free: 13.64 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.855e-05/0.569, allocations: 12 kB / 466.5 MB, free: 13.62 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0005549/0.5696, allocations: 299 kB / 466.8 MB, free: 13.34 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5696, allocations: 0 / 466.8 MB, free: 13.34 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0009972/0.5706, allocations: 151.7 kB / 466.9 MB, free: 13.19 MB / 363.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) * 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.002623/0.5733, allocations: 1.42 MB / 468.3 MB, free: 11.74 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.5751, allocations: 0.6781 MB / 469 MB, free: 11.04 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/0.5752, allocations: 1.75 kB / 469 MB, free: 11.04 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007284/0.5759, allocations: 265.5 kB / 469.3 MB, free: 10.78 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000776/0.5767, allocations: 71.75 kB / 469.3 MB, free: 10.71 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003441/0.5802, allocations: 0.9462 MB / 470.3 MB, free: 9.719 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005404/0.5807, allocations: 0.8706 MB / 471.2 MB, free: 8.82 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007734/0.5815, allocations: 205.4 kB / 471.4 MB, free: 8.621 MB / 363.1 MB Notification: Performance of SimCode: time 1.433e-06/0.5816, allocations: 0 / 471.4 MB, free: 8.621 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.601/3.183, allocations: 10.61 MB / 482 MB, free: 14.06 MB / 379.1 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)