Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001519/0.001519, allocations: 94.7 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001867/0.001867, allocations: 205.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.000279, allocations: 11.98 kB / 306.7 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1146, allocations: 51.5 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004187/0.1189, allocations: 3.434 MB / 361.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.1211, allocations: 1.212 MB / 362.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003128/0.1214, allocations: 15.94 kB / 362.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.1216, allocations: 67.39 kB / 362.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000422/0.122, allocations: 195.4 kB / 363.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004976/0.1225, allocations: 195.7 kB / 363.3 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007396/0.1233, allocations: 0.6188 MB / 363.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003622/0.1236, allocations: 219.9 kB / 364.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003612/0.124, allocations: 326.9 kB / 364.5 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004415/0.1245, allocations: 382.5 kB / 364.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.717e-05/0.1246, allocations: 56 kB / 364.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.1247, allocations: 48 kB / 364.9 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.1248, allocations: 147.5 kB / 365.1 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000156/0.125, allocations: 161.3 kB / 365.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008494/0.1259, allocations: 0.9273 MB / 366.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1259, allocations: 3.938 kB / 366.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1259, allocations: 0 / 366.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.1259, allocations: 4 kB / 366.2 MB, free: 5.738 MB / 302.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.002906/0.1288, allocations: 1.216 MB / 367.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.1289, allocations: 12.03 kB / 367.4 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001476/0.129, allocations: 98.52 kB / 367.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.1292, allocations: 83.06 kB / 367.6 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006824/0.1299, allocations: 460.6 kB / 368 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.372e-05/0.1299, allocations: 41.31 kB / 368.1 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.931e-05/0.13, allocations: 63.95 kB / 368.1 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002277/0.1323, allocations: 1.031 MB / 369.2 MB, free: 2.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.1323, allocations: 3.938 kB / 369.2 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.964e-05/0.1324, allocations: 28 kB / 369.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.822e-05/0.1325, allocations: 16 kB / 369.2 MB, free: 2.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003026/0.1355, allocations: 1.155 MB / 370.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2377/0.3732, allocations: 3.264 MB / 373.6 MB, free: 17.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00273/0.376, allocations: 1.024 MB / 374.6 MB, free: 17.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.2e-05/0.3761, allocations: 18.05 kB / 374.7 MB, free: 17.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001837/0.378, allocations: 0.5161 MB / 375.2 MB, free: 17.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.757e-06/0.378, allocations: 0 / 375.2 MB, free: 17.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003765/0.3817, allocations: 1.276 MB / 376.5 MB, free: 16.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.3819, allocations: 373.9 kB / 376.8 MB, free: 16.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009239/0.3828, allocations: 0.5725 MB / 377.4 MB, free: 16.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.74e-05/0.3829, allocations: 38.64 kB / 377.4 MB, free: 16.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002935/0.3832, allocations: 373 kB / 377.8 MB, free: 16.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.3834, allocations: 168.2 kB / 378 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-05/0.3834, allocations: 15.62 kB / 378 MB, free: 15.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.3836, allocations: 374.4 kB / 378.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/0.3849, allocations: 459.9 kB / 378.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.3863, allocations: 0.7342 MB / 379.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.3877, allocations: 0.5292 MB / 380.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.3877, allocations: 1.281 kB / 380.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003082/0.3908, allocations: 1.255 MB / 381.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.514e-05/0.3909, allocations: 63.42 kB / 381.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.3909, allocations: 6.453 kB / 381.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.069e-05/0.3909, allocations: 16.02 kB / 381.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.3921, allocations: 256.7 kB / 381.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.253e-05/0.3921, allocations: 16.25 kB / 381.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.3932, allocations: 220.6 kB / 381.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.287e-05/0.3933, allocations: 34.67 kB / 381.9 MB, free: 14.12 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.000349/0.3937, allocations: 224.7 kB / 382.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.3938, allocations: 68.94 kB / 382.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.394, allocations: 76.3 kB / 382.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.394, allocations: 4.688 kB / 382.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/0.394, allocations: 3.953 kB / 382.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.394, allocations: 2.719 kB / 382.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003568/0.3976, allocations: 1.79 MB / 384.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.3976, allocations: 0.5156 kB / 384.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008442/0.3985, allocations: 180.5 kB / 384.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.3985, allocations: 2 kB / 384.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.687e-05/0.3985, allocations: 14.09 kB / 384.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.748e-06/0.3986, allocations: 2.188 kB / 384.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3986, allocations: 0.5156 kB / 384.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00364/0.4022, allocations: 1.477 MB / 385.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/0.4024, allocations: 148.8 kB / 385.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.4025, allocations: 14 kB / 385.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008499/0.4034, allocations: 145 kB / 386 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.4035, allocations: 46.86 kB / 386.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.533e-05/0.4036, allocations: 19.09 kB / 386.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006478/0.4042, allocations: 396.9 kB / 386.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.4043, allocations: 0 / 386.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000794/0.4051, allocations: 179.2 kB / 386.7 MB, free: 12.09 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.003994/0.4091, allocations: 2.039 MB / 388.7 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002917/0.412, allocations: 1.117 MB / 389.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.412, allocations: 0 / 389.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.4133, allocations: 467.4 kB / 390.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007302/0.414, allocations: 94.36 kB / 390.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/0.4257, allocations: 8.685 MB / 399.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.4261, allocations: 0.896 MB / 400 MB, free: 2.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000553/0.4267, allocations: 83.89 kB / 400 MB, free: 2.789 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003974/0.4271, allocations: 234.5 kB / 400.3 MB, free: 2.594 MB / 302.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4271, allocations: 3.938 kB / 400.3 MB, free: 2.594 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02688/0.454, allocations: 12.97 MB / 413.2 MB, free: 6.469 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/0.4542, allocations: 179.4 kB / 413.4 MB, free: 6.227 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.217/2.671, allocations: 3.938 kB / 413.4 MB, free: 6.223 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)