Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_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.001005/0.001005, allocations: 95.23 kB / 16.94 MB, free: 5.98 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.001061/0.001062, allocations: 181.8 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004221/0.0004221, allocations: 8.781 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08557/0.086, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009062/0.09511, allocations: 10.73 MB / 339.2 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01687/0.112, allocations: 16.64 MB / 355.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001701/0.1138, allocations: 67.44 kB / 355.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002261/0.116, allocations: 0.8592 MB / 356.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006199/0.1223, allocations: 2.037 MB / 358.8 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003521/0.1258, allocations: 1.133 MB / 359.9 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009218/0.135, allocations: 5.978 MB / 365.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007785/0.1359, allocations: 415.1 kB / 366.3 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001111/0.137, allocations: 0.7851 MB / 367.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.138, allocations: 0.9358 MB / 368 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001551/0.1382, allocations: 40 kB / 368 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003709/0.1419, allocations: 1.21 MB / 369.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003485/0.1423, allocations: 262 kB / 369.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006994/0.143, allocations: 0.5975 MB / 370.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00243/0.1454, allocations: 2.52 MB / 372.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1455, allocations: 0 / 372.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1455, allocations: 4 kB / 372.6 MB, free: 7.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.984e-05/0.1455, allocations: 0 / 372.6 MB, free: 7.641 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.004178/0.1497, allocations: 3.108 MB / 375.7 MB, free: 4.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1497, allocations: 8.031 kB / 375.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.1499, allocations: 98.5 kB / 375.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003265/0.1502, allocations: 371.5 kB / 376.2 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003366/0.1536, allocations: 2.368 MB / 378.6 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.1536, allocations: 33 kB / 378.6 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.1537, allocations: 52 kB / 378.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.1549, allocations: 0.7187 MB / 379.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1549, allocations: 0 / 379.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.477e-05/0.155, allocations: 20 kB / 379.4 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/0.155, allocations: 19.98 kB / 379.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1437/0.2988, allocations: 0.8234 MB / 380.2 MB, free: 52.56 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006384/0.3052, allocations: 2.892 MB / 383.1 MB, free: 51.96 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.3065, allocations: 0.7346 MB / 383.9 MB, free: 51.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02362/0.3301, allocations: 30.32 MB / 414.2 MB, free: 25.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006435/0.3308, allocations: 373.6 kB / 414.5 MB, free: 25.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.3308, allocations: 3.938 kB / 414.5 MB, free: 25.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002725/0.3335, allocations: 1.447 MB / 416 MB, free: 24.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/0.3336, allocations: 57.41 kB / 416 MB, free: 24.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002425/0.336, allocations: 2.786 MB / 418.8 MB, free: 22.08 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.9e-05/0.3361, allocations: 37.48 kB / 418.9 MB, free: 22.04 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008441/0.3369, allocations: 1.392 MB / 420.3 MB, free: 20.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.3371, allocations: 169.3 kB / 420.4 MB, free: 20.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.702e-05/0.3371, allocations: 16 kB / 420.4 MB, free: 20.47 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.276e-05/0.3372, allocations: 337.9 kB / 420.8 MB, free: 20.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005003/0.3377, allocations: 257.3 kB / 421 MB, free: 19.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006449/0.3384, allocations: 0.6123 MB / 421.6 MB, free: 19.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005742/0.3389, allocations: 334.7 kB / 422 MB, free: 18.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.339, allocations: 4 kB / 422 MB, free: 18.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001865/0.3408, allocations: 1.314 MB / 423.3 MB, free: 17.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.3409, allocations: 16.22 kB / 423.3 MB, free: 17.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.013e-05/0.341, allocations: 80.86 kB / 423.4 MB, free: 17.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004734/0.3414, allocations: 283.5 kB / 423.7 MB, free: 17.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005011/0.342, allocations: 180.6 kB / 423.8 MB, free: 16.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006879/0.3427, allocations: 0.8802 MB / 424.7 MB, free: 16.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009269/0.3436, allocations: 122.9 kB / 424.8 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.559e-05/0.3437, allocations: 66.02 kB / 424.9 MB, free: 15.86 MB / 318.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.0006268/0.3443, allocations: 425.6 kB / 425.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/0.3446, allocations: 363.6 kB / 425.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002629/0.3473, allocations: 1.338 MB / 427 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.3473, allocations: 11.81 kB / 427 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3473, allocations: 3.938 kB / 427 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.3473, allocations: 3.984 kB / 427 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002882/0.3502, allocations: 2.21 MB / 429.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.089e-05/0.3503, allocations: 75.98 kB / 429.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002846/0.3506, allocations: 72.02 kB / 429.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003774/0.351, allocations: 263.1 kB / 429.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-05/0.351, allocations: 35.98 kB / 429.7 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006046/0.3516, allocations: 0.8595 MB / 430.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3516, allocations: 4.031 kB / 430.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.3532, allocations: 1.279 MB / 431.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005836/0.3538, allocations: 468.2 kB / 432.3 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002633/0.354, allocations: 12 kB / 432.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006495/0.3547, allocations: 39.95 kB / 432.3 MB, free: 8.223 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.3548, allocations: 75.83 kB / 432.4 MB, free: 8.148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.925e-05/0.3549, allocations: 39.98 kB / 432.4 MB, free: 8.109 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001857/0.3568, allocations: 1.797 MB / 434.2 MB, free: 6.309 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3568, allocations: 0 / 434.2 MB, free: 6.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001226/0.358, allocations: 0.5662 MB / 434.8 MB, free: 5.766 MB / 318.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.002523/0.3605, allocations: 2.691 MB / 437.5 MB, free: 3.188 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.362, allocations: 0.8902 MB / 438.4 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.362, allocations: 0 / 438.4 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007277/0.3627, allocations: 0.5046 MB / 438.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.364, allocations: 481.8 kB / 439.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0357/0.3997, allocations: 25.19 MB / 464.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009561/0.4007, allocations: 1.671 MB / 466.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001239/0.4019, allocations: 391 kB / 466.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009765/0.4029, allocations: 1.128 MB / 467.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4029, allocations: 4 kB / 467.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08448/0.4874, allocations: 57.28 MB / 0.5127 GB, free: 9.66 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/0.4877, allocations: 196.5 kB / 0.5129 GB, free: 9.418 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.418/3.906, allocations: 0 / 0.5129 GB, free: 9.418 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat