Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 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.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_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.001309/0.001309, allocations: 98.7 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003518, allocations: 11.98 kB / 306.7 MB, free: 1.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1305, allocations: 51.5 MB / 358.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01133/0.1419, allocations: 11.26 MB / 369.5 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.231/0.3729, allocations: 17.48 MB / 386.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002887/0.3758, allocations: 61.78 kB / 387 MB, free: 5.801 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00425/0.3801, allocations: 0.8939 MB / 387.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01123/0.3914, allocations: 2.051 MB / 389.9 MB, free: 4.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006254/0.3976, allocations: 1.183 MB / 391.1 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01262/0.4103, allocations: 6.149 MB / 397.3 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008453/0.4112, allocations: 396.6 kB / 397.7 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002317/0.4135, allocations: 0.898 MB / 398.6 MB, free: 96 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002282/0.4158, allocations: 0.9737 MB / 399.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002266/0.416, allocations: 39.88 kB / 399.6 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006818/0.4229, allocations: 1.431 MB / 401 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000648/0.4235, allocations: 262.9 kB / 401.3 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.4253, allocations: 0.5886 MB / 401.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003834/0.4292, allocations: 2.506 MB / 404.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.4292, allocations: 4 kB / 404.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4292, allocations: 0 / 404.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.868e-05/0.4293, allocations: 2.281 kB / 404.4 MB, free: 12.81 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.005085/0.4344, allocations: 3.104 MB / 407.5 MB, free: 10.53 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.4344, allocations: 8.562 kB / 407.5 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001683/0.4346, allocations: 91.73 kB / 407.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006288/0.4353, allocations: 372.3 kB / 407.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004893/0.4402, allocations: 2.342 MB / 410.3 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.661e-05/0.4402, allocations: 44.95 kB / 410.3 MB, free: 7.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.4404, allocations: 51.98 kB / 410.4 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.4417, allocations: 0.7109 MB / 411.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.4418, allocations: 3.984 kB / 411.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-05/0.4418, allocations: 16 kB / 411.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.582e-05/0.4419, allocations: 23.98 kB / 411.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.4435, allocations: 0.8241 MB / 411.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00542/0.4489, allocations: 2.899 MB / 414.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.4503, allocations: 0.7358 MB / 415.6 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0325/0.4828, allocations: 30.87 MB / 446.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007079/0.4835, allocations: 378.5 kB / 446.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.554e-06/0.4835, allocations: 4 kB / 446.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003064/0.4866, allocations: 1.443 MB / 448.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.4866, allocations: 63.41 kB / 448.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003001/0.4897, allocations: 2.76 MB / 451.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.644e-05/0.4897, allocations: 41.69 kB / 451.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.4908, allocations: 1.379 MB / 452.5 MB, free: 9.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.491, allocations: 165.7 kB / 452.7 MB, free: 9.156 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.057e-05/0.491, allocations: 12 kB / 452.7 MB, free: 9.145 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4911, allocations: 345.9 kB / 453 MB, free: 8.801 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005416/0.4917, allocations: 257.9 kB / 453.3 MB, free: 8.551 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007508/0.4924, allocations: 0.6124 MB / 453.9 MB, free: 7.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006394/0.4931, allocations: 332.2 kB / 454.2 MB, free: 7.445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.4931, allocations: 4 kB / 454.2 MB, free: 7.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002143/0.4953, allocations: 1.314 MB / 455.5 MB, free: 6.109 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.4953, allocations: 15.98 kB / 455.5 MB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/0.4954, allocations: 79.94 kB / 455.6 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000527/0.4959, allocations: 277.4 kB / 455.9 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005632/0.4965, allocations: 179.7 kB / 456.1 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008909/0.4974, allocations: 0.8841 MB / 456.9 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.4986, allocations: 121.2 kB / 457.1 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.4987, allocations: 64 kB / 457.1 MB, free: 4.477 MB / 366.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 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0007644/0.4994, allocations: 418.6 kB / 457.5 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003198/0.4998, allocations: 363.6 kB / 457.9 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003076/0.5029, allocations: 1.329 MB / 459.2 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.5029, allocations: 4 kB / 459.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.5029, allocations: 0 / 459.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.5029, allocations: 3.984 kB / 459.2 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003711/0.5066, allocations: 2.22 MB / 461.4 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001054/0.5067, allocations: 68.17 kB / 461.5 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003234/0.5071, allocations: 79.77 kB / 461.6 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000503/0.5076, allocations: 264.7 kB / 461.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.652e-05/0.5076, allocations: 28 kB / 461.9 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009002/0.5086, allocations: 0.8673 MB / 462.7 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5086, allocations: 3.953 kB / 462.7 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002045/0.5106, allocations: 1.277 MB / 464 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000843/0.5115, allocations: 460.4 kB / 464.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002661/0.5118, allocations: 12 kB / 464.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006288/0.5124, allocations: 55.66 kB / 464.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.5126, allocations: 59.94 kB / 464.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.625e-05/0.5127, allocations: 36 kB / 464.6 MB, free: 12.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002332/0.515, allocations: 1.788 MB / 466.4 MB, free: 10.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.515, allocations: 0 / 466.4 MB, free: 10.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001408/0.5164, allocations: 0.5623 MB / 467 MB, free: 10.38 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003286/0.5197, allocations: 2.682 MB / 469.7 MB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.5217, allocations: 0.8854 MB / 470.5 MB, free: 6.734 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.5217, allocations: 3.938 kB / 470.6 MB, free: 6.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009245/0.5226, allocations: 0.5043 MB / 471.1 MB, free: 6.199 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/0.5248, allocations: 0.5706 MB / 471.6 MB, free: 5.625 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03771/0.5625, allocations: 25.05 MB / 496.7 MB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.5636, allocations: 1.659 MB / 498.3 MB, free: 9.043 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001513/0.5651, allocations: 390.9 kB / 498.7 MB, free: 8.656 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/0.5662, allocations: 1.116 MB / 499.8 MB, free: 7.539 MB / 414.1 MB Notification: Performance of SimCode: time 1.493e-06/0.5662, allocations: 0 / 499.8 MB, free: 7.539 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3303/0.8965, allocations: 57.01 MB / 0.5438 GB, free: 142.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/0.8967, allocations: 202.7 kB / 0.544 GB, free: 142.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.738/4.634, allocations: 0 / 0.544 GB, free: 142.6 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat