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.0008762/0.0008764, allocations: 86.55 kB / 16.31 MB, free: 6.449 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.001013/0.001013, allocations: 175.9 kB / 17.21 MB, free: 6.32 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.35/1.35, allocations: 223.3 MB / 241.2 MB, free: 288 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002358/0.0002359, allocations: 4 kB / 300.9 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09808, allocations: 50.42 MB / 351.3 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01057/0.1087, allocations: 12.41 MB / 363.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2646/0.3733, allocations: 18.49 MB / 382.2 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004155/0.3776, allocations: 63.12 kB / 382.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004553/0.3822, allocations: 0.8625 MB / 383.2 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01415/0.3963, allocations: 1.817 MB / 385 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01089/0.4073, allocations: 1.104 MB / 386.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01817/0.4255, allocations: 5.956 MB / 392 MB, free: 6.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/0.4272, allocations: 393.5 kB / 392.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00278/0.43, allocations: 0.9181 MB / 393.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002512/0.4326, allocations: 0.9632 MB / 394.3 MB, free: 5.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005675/0.4332, allocations: 46.34 kB / 394.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01136/0.4446, allocations: 1.32 MB / 395.7 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008426/0.4454, allocations: 258.3 kB / 395.9 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001988/0.4475, allocations: 0.5922 MB / 396.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005722/0.4532, allocations: 2.605 MB / 399.1 MB, free: 3.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.4533, allocations: 0 / 399.1 MB, free: 3.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4533, allocations: 0 / 399.1 MB, free: 3.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001447/0.4534, allocations: 0 / 399.1 MB, free: 3.684 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.008354/0.4618, allocations: 3.108 MB / 402.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.4619, allocations: 7.438 kB / 402.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003033/0.4622, allocations: 105.4 kB / 402.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008867/0.4631, allocations: 377.7 kB / 402.7 MB, free: 1.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006813/0.47, allocations: 2.357 MB / 405.1 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.851e-05/0.4701, allocations: 40.98 kB / 405.1 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003157/0.4704, allocations: 47.98 kB / 405.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00265/0.4731, allocations: 0.7187 MB / 405.9 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.4731, allocations: 6.625 kB / 405.9 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/0.4733, allocations: 20 kB / 405.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.594e-05/0.4733, allocations: 19.98 kB / 405.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002831/0.4762, allocations: 0.8242 MB / 406.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009603/0.4858, allocations: 2.899 MB / 409.6 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002295/0.4881, allocations: 0.7406 MB / 410.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001873/0.4901, allocations: 0.6705 MB / 411 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03756/0.5277, allocations: 30.12 MB / 441.2 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007951/0.5285, allocations: 385.4 kB / 441.5 MB, free: 6.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.506e-06/0.5285, allocations: 0 / 441.5 MB, free: 6.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003758/0.5323, allocations: 1.485 MB / 443 MB, free: 5.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/0.5324, allocations: 63.39 kB / 443.1 MB, free: 5.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005005/0.5374, allocations: 2.764 MB / 445.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001224/0.5376, allocations: 37.7 kB / 445.9 MB, free: 2.574 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.5389, allocations: 1.387 MB / 447.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.5392, allocations: 161.7 kB / 447.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.615e-05/0.5392, allocations: 16 kB / 447.4 MB, free: 1.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.5394, allocations: 338 kB / 447.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000606/0.54, allocations: 261.8 kB / 448 MB, free: 424 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008386/0.5408, allocations: 0.6047 MB / 448.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006995/0.5415, allocations: 344.1 kB / 449 MB, free: 15.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/0.5416, allocations: 4 kB / 449 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002729/0.5443, allocations: 1.314 MB / 450.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.5443, allocations: 10.66 kB / 450.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000125/0.5445, allocations: 87.92 kB / 450.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005596/0.545, allocations: 285.4 kB / 450.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000551/0.5456, allocations: 175.7 kB / 450.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009936/0.5466, allocations: 0.8763 MB / 451.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/0.5482, allocations: 123.1 kB / 451.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/0.5484, allocations: 64 kB / 451.9 MB, free: 12.34 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.001048/0.5494, allocations: 425.4 kB / 452.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009548/0.5504, allocations: 363.6 kB / 452.7 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003749/0.5542, allocations: 1.309 MB / 454 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.5542, allocations: 12 kB / 454 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.5542, allocations: 7.188 kB / 454 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.5542, allocations: 3.953 kB / 454 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00476/0.559, allocations: 2.224 MB / 456.2 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001183/0.5591, allocations: 71.98 kB / 456.3 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.5595, allocations: 68.08 kB / 456.4 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005598/0.56, allocations: 268.7 kB / 456.6 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.123e-05/0.5601, allocations: 35.94 kB / 456.7 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.5613, allocations: 0.853 MB / 457.5 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/0.5613, allocations: 3.984 kB / 457.5 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.564, allocations: 1.168 MB / 458.7 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.5652, allocations: 464.4 kB / 459.1 MB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000637/0.5659, allocations: 8 kB / 459.1 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009467/0.5668, allocations: 43.95 kB / 459.2 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.567, allocations: 71.83 kB / 459.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.377e-05/0.5671, allocations: 36 kB / 459.3 MB, free: 4.742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00315/0.5702, allocations: 1.792 MB / 461.1 MB, free: 2.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.5702, allocations: 0 / 461.1 MB, free: 2.945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002019/0.5723, allocations: 0.5622 MB / 461.6 MB, free: 2.383 MB / 366.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.003516/0.5758, allocations: 2.365 MB / 464 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001726/0.5775, allocations: 0.8777 MB / 464.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.5776, allocations: 8.125 kB / 464.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008856/0.5784, allocations: 0.5081 MB / 465.4 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002651/0.5811, allocations: 0.5717 MB / 466 MB, free: 13.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03774/0.6189, allocations: 17.13 MB / 483.1 MB, free: 11.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.6203, allocations: 1.597 MB / 484.7 MB, free: 9.426 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001546/0.6219, allocations: 394.9 kB / 485.1 MB, free: 9.035 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001307/0.6232, allocations: 1.128 MB / 486.2 MB, free: 7.91 MB / 398.1 MB Notification: Performance of SimCode: time 1.393e-06/0.6232, allocations: 0 / 486.2 MB, free: 7.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2878/0.911, allocations: 57.96 MB / 0.5314 GB, free: 146.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001452/0.9112, allocations: 208.4 kB / 0.5316 GB, free: 146.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.568/4.479, allocations: 0 / 0.5316 GB, free: 146.4 MB / 446.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