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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001642/0.001643, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008221/0.000822, allocations: 100.1 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.597e-05/2.586e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.12, allocations: 51.47 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4093/0.5294, allocations: 104.2 MB / 499.5 MB, free: 4.918 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.5298, allocations: 70.09 kB / 499.5 MB, free: 4.883 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5574/1.087, allocations: 133.6 MB / 0.6183 GB, free: 80.39 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.774e-06/1.087, allocations: 1.969 kB / 0.6183 GB, free: 80.39 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001074/1.087, allocations: 42.31 kB / 0.6184 GB, free: 80.39 MB / 442.7 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.006219/1.094, allocations: 2.582 MB / 0.6209 GB, free: 78.97 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/1.094, allocations: 10 kB / 0.6209 GB, free: 78.97 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000766/1.095, allocations: 375.8 kB / 0.6213 GB, free: 78.78 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003365/1.098, allocations: 2.217 MB / 0.6234 GB, free: 78.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/1.098, allocations: 19.19 kB / 0.6234 GB, free: 78.15 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/1.098, allocations: 29 kB / 0.6235 GB, free: 78.15 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001106/1.099, allocations: 0.6618 MB / 0.6241 GB, free: 78.14 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/1.1, allocations: 0.6913 MB / 0.6248 GB, free: 78.03 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/1.1, allocations: 4 kB / 0.6248 GB, free: 78.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.835e-05/1.1, allocations: 1.375 kB / 0.6248 GB, free: 78.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.18e-05/1.1, allocations: 19.56 kB / 0.6248 GB, free: 78.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005042/1.105, allocations: 2.794 MB / 0.6275 GB, free: 77.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007491/1.106, allocations: 0.5729 MB / 0.6281 GB, free: 77.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006981/1.107, allocations: 0.5888 MB / 0.6287 GB, free: 77.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02917/1.136, allocations: 36.61 MB / 0.6644 GB, free: 48.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004144/1.137, allocations: 303.1 kB / 0.6647 GB, free: 48.36 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/1.137, allocations: 0 / 0.6647 GB, free: 48.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001422/1.138, allocations: 0.8553 MB / 0.6656 GB, free: 48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/1.138, allocations: 270.6 kB / 0.6658 GB, free: 47.69 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002426/1.141, allocations: 2.09 MB / 0.6679 GB, free: 46.85 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.043e-05/1.141, allocations: 29.23 kB / 0.6679 GB, free: 46.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008621/1.142, allocations: 1.388 MB / 0.6692 GB, free: 45.69 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/1.142, allocations: 168.5 kB / 0.6694 GB, free: 45.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.011e-05/1.142, allocations: 0 / 0.6694 GB, free: 45.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.509e-05/1.142, allocations: 336.4 kB / 0.6697 GB, free: 45.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002242/1.142, allocations: 172.3 kB / 0.6699 GB, free: 45.19 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004017/1.142, allocations: 0.5647 MB / 0.6704 GB, free: 44.58 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003824/1.143, allocations: 248.7 kB / 0.6707 GB, free: 44.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/1.143, allocations: 2.5 kB / 0.6707 GB, free: 44.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00145/1.144, allocations: 1.079 MB / 0.6717 GB, free: 44.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/1.144, allocations: 17.73 kB / 0.6717 GB, free: 44.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.745e-05/1.144, allocations: 82.33 kB / 0.6718 GB, free: 44.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004582/1.145, allocations: 264.8 kB / 0.6721 GB, free: 44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005522/1.145, allocations: 182.6 kB / 0.6722 GB, free: 43.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007983/1.146, allocations: 0.9207 MB / 0.6731 GB, free: 43.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/1.148, allocations: 101.8 kB / 0.6732 GB, free: 43.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.32e-05/1.148, allocations: 68.59 kB / 0.6733 GB, free: 43.29 MB / 442.7 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 () * 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.000171/1.148, allocations: 147.2 kB / 0.6734 GB, free: 43.15 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00104/1.149, allocations: 0.8598 MB / 0.6743 GB, free: 42.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002686/1.149, allocations: 363 kB / 0.6746 GB, free: 42.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/1.152, allocations: 1.177 MB / 0.6758 GB, free: 42.16 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/1.152, allocations: 14.69 kB / 0.6758 GB, free: 42.15 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/1.152, allocations: 0 / 0.6758 GB, free: 42.15 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/1.152, allocations: 0 / 0.6758 GB, free: 42.15 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003394/1.155, allocations: 2.002 MB / 0.6778 GB, free: 41.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.543e-05/1.156, allocations: 69.86 kB / 0.6778 GB, free: 41.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003119/1.156, allocations: 73.17 kB / 0.6779 GB, free: 41.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003643/1.156, allocations: 254.8 kB / 0.6781 GB, free: 41.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.876e-05/1.156, allocations: 26.17 kB / 0.6782 GB, free: 41.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007605/1.157, allocations: 0.8938 MB / 0.679 GB, free: 40.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/1.157, allocations: 7.531 kB / 0.679 GB, free: 40.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/1.158, allocations: 1.113 MB / 0.6801 GB, free: 39.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008618/1.159, allocations: 469.7 kB / 0.6806 GB, free: 39.57 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003004/1.16, allocations: 14.44 kB / 0.6806 GB, free: 39.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006913/1.16, allocations: 33.45 kB / 0.6806 GB, free: 39.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/1.16, allocations: 66.73 kB / 0.6807 GB, free: 39.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-05/1.161, allocations: 35.17 kB / 0.6807 GB, free: 39.55 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001976/1.163, allocations: 1.551 MB / 0.6822 GB, free: 38.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.163, allocations: 0 / 0.6822 GB, free: 38.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00159/1.164, allocations: 0.586 MB / 0.6828 GB, free: 38.82 MB / 442.7 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) * 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.002742/1.167, allocations: 2.729 MB / 0.6855 GB, free: 37.26 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001124/1.168, allocations: 0.6927 MB / 0.6861 GB, free: 36.97 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.168, allocations: 7.969 kB / 0.6862 GB, free: 36.96 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005146/1.169, allocations: 424.9 kB / 0.6866 GB, free: 36.76 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002835/1.171, allocations: 0.5478 MB / 0.6871 GB, free: 36.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005978/1.177, allocations: 3.193 MB / 0.6902 GB, free: 35.24 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008541/1.178, allocations: 1.656 MB / 0.6918 GB, free: 34.47 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001179/1.179, allocations: 343.6 kB / 0.6922 GB, free: 34.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008699/1.18, allocations: 1.113 MB / 0.6932 GB, free: 33.49 MB / 442.7 MB Notification: Performance of SimCode: time 1.072e-06/1.18, allocations: 0 / 0.6932 GB, free: 33.49 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09211/1.272, allocations: 52.41 MB / 0.7444 GB, free: 4.23 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001721/1.273, allocations: 125.1 kB / 0.7445 GB, free: 4.043 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.529/5.801, allocations: 3.938 kB / 0.7446 GB, free: 4.039 MB / 458.7 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