Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.37/1.37, allocations: 230.6 MB / 258.3 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 51.88 kB / 378.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2423, allocations: 53.36 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01462/0.2569, allocations: 14.07 MB / 446 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02535/0.2822, allocations: 20.39 MB / 466.4 MB, free: 4.293 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002461/0.2847, allocations: 189.8 kB / 466.6 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003284/0.288, allocations: 1.13 MB / 467.7 MB, free: 2.973 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008584/0.2966, allocations: 2.324 MB / 470 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005481/0.302, allocations: 1.445 MB / 471.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01102/0.3131, allocations: 6.478 MB / 477.9 MB, free: 8.684 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006144/0.3137, allocations: 249 kB / 478.2 MB, free: 8.406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001635/0.3153, allocations: 1.101 MB / 479.3 MB, free: 7.301 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001309/0.3166, allocations: 1.056 MB / 480.3 MB, free: 6.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001558/0.3168, allocations: 72 kB / 480.4 MB, free: 6.168 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003984/0.3208, allocations: 1.479 MB / 481.9 MB, free: 4.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003185/0.3211, allocations: 309.7 kB / 482.2 MB, free: 4.383 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001283/0.3224, allocations: 1.296 MB / 483.5 MB, free: 3.078 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004787/0.3271, allocations: 3.651 MB / 487.1 MB, free: 15.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3272, allocations: 3.938 kB / 487.1 MB, free: 15.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3272, allocations: 0 / 487.1 MB, free: 15.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.221e-05/0.3272, allocations: 4 kB / 487.1 MB, free: 15.4 MB / 398.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.005151/0.3323, allocations: 3.555 MB / 490.7 MB, free: 11.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.3324, allocations: 8.031 kB / 490.7 MB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.09e-05/0.3324, allocations: 13 kB / 490.7 MB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.3325, allocations: 94.5 kB / 490.8 MB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004036/0.3329, allocations: 389.6 kB / 491.2 MB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00359/0.3365, allocations: 2.355 MB / 493.5 MB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/0.3365, allocations: 33 kB / 493.6 MB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.3367, allocations: 51.95 kB / 493.6 MB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.338, allocations: 0.7108 MB / 494.3 MB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.338, allocations: 0 / 494.3 MB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.475e-05/0.3381, allocations: 16 kB / 494.4 MB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.661e-05/0.3381, allocations: 19.98 kB / 494.4 MB, free: 8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.3396, allocations: 0.7929 MB / 495.2 MB, free: 7.203 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004855/0.3445, allocations: 2.828 MB / 498 MB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.3457, allocations: 0.5674 MB / 498.6 MB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00098/0.3467, allocations: 0.5778 MB / 499.1 MB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0255/0.3722, allocations: 13.77 MB / 0.5009 GB, free: 5.012 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007859/0.373, allocations: 361.6 kB / 0.5012 GB, free: 4.648 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.675e-06/0.373, allocations: 0 / 0.5012 GB, free: 4.648 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.0033/0.3763, allocations: 1.318 MB / 0.5025 GB, free: 3.316 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.3763, allocations: 63.39 kB / 0.5026 GB, free: 3.242 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003524/0.3799, allocations: 2.803 MB / 0.5053 GB, free: 428 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.522e-05/0.3799, allocations: 33.7 kB / 0.5053 GB, free: 388 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001275/0.3812, allocations: 1.4 MB / 0.5067 GB, free: 14.97 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.3814, allocations: 174.6 kB / 0.5069 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003124/0.3817, allocations: 226.4 kB / 0.5071 GB, free: 14.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3818, allocations: 338 kB / 0.5074 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005685/0.3824, allocations: 237.8 kB / 0.5076 GB, free: 14.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008544/0.3832, allocations: 0.5849 MB / 0.5082 GB, free: 13.26 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.3847, allocations: 0.8802 MB / 0.5091 GB, free: 12.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.3847, allocations: 4 kB / 0.5091 GB, free: 12.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002206/0.3869, allocations: 1.285 MB / 0.5103 GB, free: 10.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3869, allocations: 8 kB / 0.5103 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000111/0.3871, allocations: 91.86 kB / 0.5104 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005527/0.3876, allocations: 275.5 kB / 0.5107 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005536/0.3882, allocations: 163.7 kB / 0.5108 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009947/0.3892, allocations: 0.8936 MB / 0.5117 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009148/0.3901, allocations: 119.2 kB / 0.5118 GB, free: 9.348 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.3902, allocations: 64 kB / 0.5119 GB, free: 9.285 MB / 430.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 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0006936/0.3909, allocations: 417.5 kB / 0.5123 GB, free: 8.867 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003748/0.3913, allocations: 377.7 kB / 0.5127 GB, free: 8.496 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/0.394, allocations: 1.259 MB / 0.5139 GB, free: 7.223 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.394, allocations: 8 kB / 0.5139 GB, free: 7.215 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.394, allocations: 11.88 kB / 0.5139 GB, free: 7.203 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.394, allocations: 0 / 0.5139 GB, free: 7.203 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003459/0.3974, allocations: 2.153 MB / 0.516 GB, free: 4.977 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.655e-05/0.3975, allocations: 80.11 kB / 0.5161 GB, free: 4.898 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003003/0.3978, allocations: 55.89 kB / 0.5161 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000476/0.3983, allocations: 270 kB / 0.5164 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/0.3984, allocations: 28 kB / 0.5164 GB, free: 4.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009648/0.3993, allocations: 0.8608 MB / 0.5173 GB, free: 3.664 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3993, allocations: 4.031 kB / 0.5173 GB, free: 3.66 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.4013, allocations: 1.147 MB / 0.5184 GB, free: 2.473 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000772/0.4021, allocations: 411.2 kB / 0.5188 GB, free: 2.066 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002649/0.4023, allocations: 8 kB / 0.5188 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006276/0.4029, allocations: 27.97 kB / 0.5188 GB, free: 2.031 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.4031, allocations: 67.92 kB / 0.5189 GB, free: 1.965 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.691e-05/0.4032, allocations: 40 kB / 0.5189 GB, free: 1.926 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002559/0.4057, allocations: 1.82 MB / 0.5207 GB, free: 104 kB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4057, allocations: 0 / 0.5207 GB, free: 104 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001391/0.4071, allocations: 0.5658 MB / 0.5212 GB, free: 15.54 MB / 446.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003481/0.4106, allocations: 2.373 MB / 0.5236 GB, free: 13.12 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.4125, allocations: 0.8302 MB / 0.5244 GB, free: 12.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/0.4125, allocations: 8 kB / 0.5244 GB, free: 12.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009203/0.4134, allocations: 476.2 kB / 0.5248 GB, free: 11.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/0.4159, allocations: 0.5951 MB / 0.5254 GB, free: 11.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2117/0.6276, allocations: 16.01 MB / 0.541 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/0.6287, allocations: 1.6 MB / 0.5426 GB, free: 101.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001143/0.6298, allocations: 391.6 kB / 0.543 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009304/0.6307, allocations: 1.124 MB / 0.5441 GB, free: 100.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6307, allocations: 0 / 0.5441 GB, free: 100.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09068/0.7214, allocations: 63.2 MB / 0.6058 GB, free: 43.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.73/19.45, allocations: 10.89 kB / 0.6058 GB, free: 43.13 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.853722886997275] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 19.663495838001836 19.673756696 19.343940899 Calling exit ...