Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000999/0.0009989, allocations: 92.12 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 184.4 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002532/0.0002535, allocations: 5.156 kB / 300.8 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09605/0.09632, allocations: 50.42 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009733/0.1061, allocations: 11.24 MB / 362.5 MB, free: 384 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02194/0.1281, allocations: 17.46 MB / 379.9 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00207/0.1302, allocations: 63.5 kB / 380 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002778/0.133, allocations: 0.8902 MB / 380.9 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006273/0.1393, allocations: 2.049 MB / 382.9 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003718/0.143, allocations: 1.18 MB / 384.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009376/0.1524, allocations: 6.068 MB / 390.2 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007567/0.1532, allocations: 399.3 kB / 390.6 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001501/0.1547, allocations: 0.9059 MB / 391.5 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001339/0.156, allocations: 0.9669 MB / 392.4 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.1562, allocations: 40 kB / 392.5 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004493/0.1607, allocations: 1.429 MB / 393.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003076/0.161, allocations: 262 kB / 394.2 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007249/0.1618, allocations: 0.5937 MB / 394.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00302/0.1648, allocations: 2.5 MB / 397.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1648, allocations: 0 / 397.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1648, allocations: 3.938 kB / 397.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.074e-05/0.1649, allocations: 4 kB / 397.3 MB, free: 13.45 MB / 334.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.004919/0.1698, allocations: 3.088 MB / 400.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.1698, allocations: 12.03 kB / 400.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.17, allocations: 98.5 kB / 400.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004306/0.1704, allocations: 371.5 kB / 400.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003945/0.1744, allocations: 2.344 MB / 403.2 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/0.1744, allocations: 33 kB / 403.2 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.1745, allocations: 51.91 kB / 403.2 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.176, allocations: 0.7148 MB / 404 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.176, allocations: 8 kB / 404 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.464e-05/0.1761, allocations: 19.95 kB / 404 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.1761, allocations: 19.98 kB / 404 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.1777, allocations: 0.8319 MB / 404.8 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004981/0.1827, allocations: 2.887 MB / 407.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.1841, allocations: 0.729 MB / 408.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2014/0.3855, allocations: 30.24 MB / 438.7 MB, free: 57.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007287/0.3863, allocations: 379.6 kB / 439.1 MB, free: 57.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.885e-06/0.3863, allocations: 0.9688 kB / 439.1 MB, free: 57.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003161/0.3894, allocations: 1.438 MB / 440.5 MB, free: 57.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.3895, allocations: 60.77 kB / 440.6 MB, free: 57.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003389/0.3929, allocations: 2.77 MB / 443.3 MB, free: 56.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.908e-05/0.393, allocations: 35.45 kB / 443.4 MB, free: 56.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.3942, allocations: 1.385 MB / 444.7 MB, free: 56.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.3944, allocations: 159.4 kB / 444.9 MB, free: 56.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.397e-05/0.3945, allocations: 18.16 kB / 444.9 MB, free: 56.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.84e-05/0.3946, allocations: 344.2 kB / 445.3 MB, free: 55.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005769/0.3951, allocations: 255.9 kB / 445.5 MB, free: 55.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006294/0.3958, allocations: 0.6124 MB / 446.1 MB, free: 55.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005865/0.3964, allocations: 337.1 kB / 446.5 MB, free: 55.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/0.3964, allocations: 4.125 kB / 446.5 MB, free: 55.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001897/0.3983, allocations: 1.317 MB / 447.8 MB, free: 54.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.3983, allocations: 11.84 kB / 447.8 MB, free: 54.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.875e-05/0.3984, allocations: 78.67 kB / 447.9 MB, free: 54.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000472/0.3989, allocations: 274.3 kB / 448.1 MB, free: 54.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005295/0.3994, allocations: 185.2 kB / 448.3 MB, free: 54.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007249/0.4002, allocations: 0.8795 MB / 449.2 MB, free: 53.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009768/0.4012, allocations: 120.2 kB / 449.3 MB, free: 53.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.011e-05/0.4013, allocations: 63.06 kB / 449.4 MB, free: 53.73 MB / 350.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.000697/0.402, allocations: 427.4 kB / 449.8 MB, free: 53.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004024/0.4024, allocations: 357.1 kB / 450.1 MB, free: 53.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003157/0.4055, allocations: 1.334 MB / 451.5 MB, free: 52.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.4056, allocations: 3.969 kB / 451.5 MB, free: 52.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4056, allocations: 2.953 kB / 451.5 MB, free: 52.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.4056, allocations: 3.984 kB / 451.5 MB, free: 52.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/0.4088, allocations: 2.209 MB / 453.7 MB, free: 51.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.026e-05/0.4089, allocations: 77.38 kB / 453.8 MB, free: 51.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/0.4092, allocations: 67.08 kB / 453.8 MB, free: 51.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004587/0.4097, allocations: 259 kB / 454.1 MB, free: 51.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.495e-05/0.4097, allocations: 36.83 kB / 454.1 MB, free: 51.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006876/0.4104, allocations: 0.8629 MB / 455 MB, free: 50.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.4104, allocations: 3.953 kB / 455 MB, free: 50.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.412, allocations: 1.274 MB / 456.3 MB, free: 48.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006002/0.4126, allocations: 461.7 kB / 456.7 MB, free: 48.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002628/0.4129, allocations: 16 kB / 456.7 MB, free: 48.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006322/0.4135, allocations: 40.58 kB / 456.8 MB, free: 48.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.4136, allocations: 71.77 kB / 456.8 MB, free: 48.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.12e-05/0.4137, allocations: 39.98 kB / 456.9 MB, free: 48.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002086/0.4158, allocations: 1.788 MB / 458.7 MB, free: 46.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4158, allocations: 0 / 458.7 MB, free: 46.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001447/0.4173, allocations: 0.5618 MB / 459.2 MB, free: 45.97 MB / 350.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.00294/0.4202, allocations: 2.682 MB / 461.9 MB, free: 43.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.4218, allocations: 0.8859 MB / 462.8 MB, free: 42.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.4218, allocations: 0 / 462.8 MB, free: 42.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007427/0.4225, allocations: 0.5071 MB / 463.3 MB, free: 41.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002042/0.4246, allocations: 0.57 MB / 463.9 MB, free: 41.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03114/0.4557, allocations: 25.04 MB / 488.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007415/0.4565, allocations: 1.663 MB / 490.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001324/0.4579, allocations: 398.8 kB / 491 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008938/0.4588, allocations: 1.124 MB / 492.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4588, allocations: 0 / 492.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09217/0.551, allocations: 56.97 MB / 0.5362 GB, free: 2.676 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/0.5512, allocations: 200.4 kB / 0.5364 GB, free: 2.434 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.452/4.003, allocations: 0 / 0.5364 GB, free: 2.434 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat