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.0009396/0.0009397, allocations: 100.7 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002534/0.0002535, allocations: 11.98 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1383, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004138/0.1425, allocations: 3.656 MB / 362 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002543/0.145, allocations: 1.172 MB / 363.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003959/0.1455, allocations: 11.94 kB / 363.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002284/0.1457, allocations: 71.39 kB / 363.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003723/0.1461, allocations: 150.7 kB / 363.4 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000609/0.1467, allocations: 195.7 kB / 363.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.1478, allocations: 0.9488 MB / 364.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000498/0.1483, allocations: 215.9 kB / 364.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005243/0.1488, allocations: 318.9 kB / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004979/0.1493, allocations: 386.4 kB / 365.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.397e-05/0.1494, allocations: 51.94 kB / 365.5 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.836e-05/0.1495, allocations: 48 kB / 365.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.1497, allocations: 147.4 kB / 365.6 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.1499, allocations: 165.3 kB / 365.8 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007948/0.1507, allocations: 0.9312 MB / 366.7 MB, free: 5.297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1507, allocations: 0 / 366.7 MB, free: 5.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1507, allocations: 0 / 366.7 MB, free: 5.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.1507, allocations: 0 / 366.7 MB, free: 5.297 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.002632/0.1534, allocations: 1.212 MB / 367.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.1534, allocations: 11.97 kB / 368 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00016/0.1536, allocations: 102.5 kB / 368.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.1537, allocations: 83.06 kB / 368.1 MB, free: 3.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006462/0.1544, allocations: 464.6 kB / 368.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/0.1545, allocations: 45.31 kB / 368.6 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1546, allocations: 63.95 kB / 368.7 MB, free: 3.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002219/0.1568, allocations: 1.038 MB / 369.7 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.1568, allocations: 0 / 369.7 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.108e-05/0.1569, allocations: 28 kB / 369.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.1569, allocations: 19.94 kB / 369.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002958/0.1599, allocations: 1.155 MB / 370.9 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2886/0.4485, allocations: 3.267 MB / 374.2 MB, free: 17.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002955/0.4515, allocations: 1.029 MB / 375.2 MB, free: 17.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.4529, allocations: 496.9 kB / 375.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.239e-05/0.453, allocations: 20.02 kB / 375.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001429/0.4545, allocations: 0.5135 MB / 376.3 MB, free: 17.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 4.989e-06/0.4545, allocations: 0 / 376.3 MB, free: 17.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003581/0.4581, allocations: 1.268 MB / 377.5 MB, free: 17.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.4582, allocations: 374.1 kB / 377.9 MB, free: 16.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.4594, allocations: 0.5707 MB / 378.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.768e-05/0.4595, allocations: 43.88 kB / 378.5 MB, free: 16.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002897/0.4598, allocations: 364.5 kB / 378.9 MB, free: 16.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/0.4599, allocations: 170 kB / 379 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.825e-05/0.46, allocations: 11.44 kB / 379 MB, free: 16.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.4602, allocations: 374 kB / 379.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/0.4615, allocations: 460.8 kB / 379.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/0.4631, allocations: 0.7368 MB / 380.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.4646, allocations: 0.529 MB / 381.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.4646, allocations: 2 kB / 381.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00366/0.4683, allocations: 1.254 MB / 382.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.156e-05/0.4684, allocations: 66.48 kB / 382.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.595e-05/0.4684, allocations: 9.891 kB / 382.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.281e-05/0.4685, allocations: 11.64 kB / 382.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.4697, allocations: 254.2 kB / 382.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.848e-05/0.4697, allocations: 15.55 kB / 382.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001241/0.471, allocations: 228.2 kB / 382.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.241e-05/0.471, allocations: 31.22 kB / 383 MB, free: 14.27 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.0004325/0.4715, allocations: 220 kB / 383.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.4716, allocations: 65.22 kB / 383.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001756/0.4718, allocations: 80.48 kB / 383.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.4718, allocations: 8.125 kB / 383.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.498e-05/0.4718, allocations: 1.281 kB / 383.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.4719, allocations: 2.766 kB / 383.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004381/0.4762, allocations: 1.793 MB / 385.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.4763, allocations: 4 kB / 385.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008635/0.4771, allocations: 182.3 kB / 385.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.4772, allocations: 2.656 kB / 385.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.181e-05/0.4772, allocations: 14.62 kB / 385.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.167e-06/0.4772, allocations: 2.031 kB / 385.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.4773, allocations: 0 / 385.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004171/0.4814, allocations: 1.472 MB / 386.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003968/0.4819, allocations: 144.4 kB / 387 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.482, allocations: 19.52 kB / 387 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00092/0.4829, allocations: 146.4 kB / 387.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/0.4832, allocations: 52.42 kB / 387.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.94e-05/0.4833, allocations: 16.66 kB / 387.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009872/0.4843, allocations: 396.1 kB / 387.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4843, allocations: 1.219 kB / 387.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001071/0.4854, allocations: 176.1 kB / 387.7 MB, free: 12.22 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.003916/0.4893, allocations: 2.035 MB / 389.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003087/0.4924, allocations: 1.111 MB / 390.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.4924, allocations: 5.531 kB / 390.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.4936, allocations: 464.9 kB / 391.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.001001/0.4946, allocations: 104.5 kB / 391.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.505, allocations: 4.625 MB / 396.1 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.5055, allocations: 0.8887 MB / 397 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005855/0.5061, allocations: 77.42 kB / 397 MB, free: 6.742 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004225/0.5065, allocations: 228.9 kB / 397.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of SimCode: time 2.474e-06/0.5065, allocations: 4 kB / 397.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02946/0.536, allocations: 13.11 MB / 410.4 MB, free: 9.688 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.5363, allocations: 181.5 kB / 410.6 MB, free: 9.445 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.305/2.842, allocations: 4 kB / 410.6 MB, free: 9.441 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)