Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001719/0.001719, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002231/0.002232, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.465/1.465, allocations: 227.7 MB / 247 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 65.5 kB / 307.3 MB, free: 428 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1125, allocations: 50.53 MB / 357.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1968/0.3094, allocations: 14.02 MB / 371.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02325/0.3327, allocations: 20.31 MB / 392.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00273/0.3354, allocations: 61 kB / 392.2 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003334/0.3388, allocations: 1.119 MB / 393.4 MB, free: 188 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008786/0.3476, allocations: 2.266 MB / 395.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005338/0.353, allocations: 1.432 MB / 397.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01071/0.3638, allocations: 6.411 MB / 403.5 MB, free: 11.19 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008791/0.3647, allocations: 426.8 kB / 403.9 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002152/0.3668, allocations: 1.02 MB / 404.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001719/0.3686, allocations: 1.052 MB / 406 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002231/0.3688, allocations: 73.41 kB / 406 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00494/0.3738, allocations: 1.477 MB / 407.5 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005687/0.3744, allocations: 308.2 kB / 407.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002323/0.3767, allocations: 1.309 MB / 409.1 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007113/0.3838, allocations: 3.603 MB / 412.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3839, allocations: 4 kB / 412.7 MB, free: 4.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3839, allocations: 0 / 412.7 MB, free: 4.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.181e-05/0.384, allocations: 4 kB / 412.7 MB, free: 4.273 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.00569/0.3897, allocations: 3.51 MB / 416.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.3897, allocations: 8.031 kB / 416.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000127/0.3899, allocations: 98.45 kB / 416.3 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004808/0.3903, allocations: 375.4 kB / 416.7 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004469/0.3948, allocations: 2.532 MB / 419.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.626e-05/0.3949, allocations: 29 kB / 419.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.3951, allocations: 51.91 kB / 419.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.3965, allocations: 0.6992 MB / 420 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.3965, allocations: 0 / 420 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.769e-05/0.3966, allocations: 16 kB / 420 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.639e-05/0.3966, allocations: 23.98 kB / 420.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.3982, allocations: 0.7851 MB / 420.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005378/0.4036, allocations: 2.891 MB / 423.7 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.405, allocations: 0.6961 MB / 424.4 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.4061, allocations: 0.6503 MB / 425.1 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03383/0.4399, allocations: 30.72 MB / 455.8 MB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008013/0.4408, allocations: 369.5 kB / 456.2 MB, free: 4.301 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.334e-06/0.4408, allocations: 0 / 456.2 MB, free: 4.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003316/0.4441, allocations: 1.391 MB / 457.6 MB, free: 2.879 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.4442, allocations: 63.41 kB / 457.6 MB, free: 2.805 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003557/0.4478, allocations: 2.795 MB / 460.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.466e-05/0.4478, allocations: 33.7 kB / 460.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.4492, allocations: 1.387 MB / 461.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.4493, allocations: 165.7 kB / 462 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.4497, allocations: 218.2 kB / 462.2 MB, free: 14.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.4498, allocations: 341.9 kB / 462.5 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006029/0.4504, allocations: 237.9 kB / 462.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008748/0.4513, allocations: 0.5968 MB / 463.4 MB, free: 12.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/0.4529, allocations: 0.8763 MB / 464.2 MB, free: 11.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.4529, allocations: 4 kB / 464.3 MB, free: 11.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002559/0.4554, allocations: 1.279 MB / 465.5 MB, free: 10.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.4555, allocations: 12.97 kB / 465.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001179/0.4556, allocations: 80 kB / 465.6 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005766/0.4562, allocations: 276.7 kB / 465.9 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006252/0.4568, allocations: 175.7 kB / 466.1 MB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.4579, allocations: 0.8725 MB / 466.9 MB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.4589, allocations: 107 kB / 467 MB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.4591, allocations: 68 kB / 467.1 MB, free: 8.883 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0007493/0.4598, allocations: 429.5 kB / 467.5 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004157/0.4602, allocations: 363.6 kB / 467.9 MB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003237/0.4635, allocations: 1.277 MB / 469.2 MB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.4635, allocations: 4 kB / 469.2 MB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4635, allocations: 4 kB / 469.2 MB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.4635, allocations: 7.922 kB / 469.2 MB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003807/0.4673, allocations: 2.181 MB / 471.4 MB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001057/0.4675, allocations: 71.98 kB / 471.4 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.4678, allocations: 55.95 kB / 471.5 MB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005001/0.4683, allocations: 269.9 kB / 471.7 MB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.728e-05/0.4684, allocations: 36.48 kB / 471.8 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.4694, allocations: 0.8561 MB / 472.6 MB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4694, allocations: 4.031 kB / 472.6 MB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002093/0.4715, allocations: 1.133 MB / 473.8 MB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007361/0.4723, allocations: 472.3 kB / 474.2 MB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002679/0.4726, allocations: 16 kB / 474.2 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006243/0.4732, allocations: 23.97 kB / 474.3 MB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.4734, allocations: 67.88 kB / 474.3 MB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.371e-05/0.4734, allocations: 36 kB / 474.4 MB, free: 1.418 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002649/0.4761, allocations: 1.828 MB / 476.2 MB, free: 15.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4761, allocations: 0 / 476.2 MB, free: 15.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001487/0.4776, allocations: 0.5661 MB / 476.8 MB, free: 15.02 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003503/0.4811, allocations: 2.358 MB / 479.1 MB, free: 12.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.4831, allocations: 0.8658 MB / 480 MB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4832, allocations: 7.938 kB / 480 MB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009732/0.4841, allocations: 488.2 kB / 480.5 MB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002989/0.4871, allocations: 0.6116 MB / 481.1 MB, free: 10.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02923/0.5164, allocations: 20.14 MB / 0.4895 GB, free: 4.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/0.5177, allocations: 1.6 MB / 0.491 GB, free: 2.852 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001422/0.5191, allocations: 394.9 kB / 0.4914 GB, free: 2.461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.5204, allocations: 1.116 MB / 0.4925 GB, free: 1.344 MB / 414.1 MB Notification: Performance of SimCode: time 6.92e-07/0.5204, allocations: 0 / 0.4925 GB, free: 1.344 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2901/0.8105, allocations: 61.7 MB / 0.5528 GB, free: 141.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/14.29, allocations: 8.031 kB / 0.5528 GB, free: 141.9 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)