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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001302/0.001302, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 215.8 kB / 24.53 MB, free: 4.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 230.5 MB / 258.2 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 67.91 kB / 378.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2613, allocations: 53.4 MB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01427/0.2756, allocations: 14.08 MB / 446 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02522/0.3008, allocations: 20.38 MB / 466.4 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002285/0.3031, allocations: 189.8 kB / 466.6 MB, free: 3.914 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00318/0.3063, allocations: 1.134 MB / 467.7 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007162/0.3134, allocations: 2.324 MB / 470.1 MB, free: 444 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004474/0.3179, allocations: 1.449 MB / 471.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01085/0.3288, allocations: 6.47 MB / 478 MB, free: 8.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007117/0.3295, allocations: 249 kB / 478.2 MB, free: 8.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001789/0.3313, allocations: 1.108 MB / 479.3 MB, free: 7.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001445/0.3327, allocations: 1.056 MB / 480.4 MB, free: 6.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001952/0.3329, allocations: 68 kB / 480.5 MB, free: 5.973 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00407/0.337, allocations: 1.483 MB / 481.9 MB, free: 4.488 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003599/0.3373, allocations: 309.7 kB / 482.2 MB, free: 4.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001566/0.3389, allocations: 1.292 MB / 483.5 MB, free: 2.883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005767/0.3447, allocations: 3.651 MB / 487.2 MB, free: 15.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3447, allocations: 0 / 487.2 MB, free: 15.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3447, allocations: 7.938 kB / 487.2 MB, free: 15.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.592e-05/0.3447, allocations: 0 / 487.2 MB, free: 15.21 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.005889/0.3506, allocations: 3.547 MB / 490.7 MB, free: 11.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.3507, allocations: 12.03 kB / 490.8 MB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.41e-05/0.3507, allocations: 20.92 kB / 490.8 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001696/0.3509, allocations: 90.52 kB / 490.9 MB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008189/0.3517, allocations: 389.6 kB / 491.2 MB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006199/0.3579, allocations: 2.363 MB / 493.6 MB, free: 8.629 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.401e-05/0.358, allocations: 33 kB / 493.6 MB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/0.3582, allocations: 47.95 kB / 493.7 MB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/0.3603, allocations: 0.7069 MB / 494.4 MB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.3603, allocations: 0 / 494.4 MB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.3604, allocations: 20 kB / 494.4 MB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-05/0.3604, allocations: 23.98 kB / 494.4 MB, free: 7.797 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/0.3629, allocations: 0.789 MB / 495.2 MB, free: 7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007958/0.3709, allocations: 2.828 MB / 498 MB, free: 4.125 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001909/0.3728, allocations: 0.5748 MB / 498.6 MB, free: 3.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/0.3743, allocations: 0.577 MB / 499.2 MB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02955/0.4039, allocations: 13.76 MB / 0.5009 GB, free: 4.812 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008079/0.4047, allocations: 361.6 kB / 0.5013 GB, free: 4.449 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.946e-06/0.4047, allocations: 0 / 0.5013 GB, free: 4.449 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003577/0.4083, allocations: 1.322 MB / 0.5026 GB, free: 3.117 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.4083, allocations: 67.39 kB / 0.5026 GB, free: 3.039 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003688/0.412, allocations: 2.799 MB / 0.5054 GB, free: 224 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.257e-05/0.4121, allocations: 29.7 kB / 0.5054 GB, free: 188 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001321/0.4134, allocations: 1.396 MB / 0.5068 GB, free: 14.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.4136, allocations: 174.6 kB / 0.5069 GB, free: 14.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000313/0.4139, allocations: 222.4 kB / 0.5071 GB, free: 14.39 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.4141, allocations: 338 kB / 0.5075 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006008/0.4147, allocations: 245.8 kB / 0.5077 GB, free: 13.81 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008733/0.4156, allocations: 0.5849 MB / 0.5083 GB, free: 13.06 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001483/0.4171, allocations: 0.8763 MB / 0.5091 GB, free: 12.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.4171, allocations: 4 kB / 0.5091 GB, free: 12.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002451/0.4195, allocations: 1.285 MB / 0.5104 GB, free: 10.71 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.4195, allocations: 15.98 kB / 0.5104 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001133/0.4197, allocations: 83.94 kB / 0.5105 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005798/0.4202, allocations: 280.7 kB / 0.5108 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005686/0.4208, allocations: 171.7 kB / 0.5109 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.4219, allocations: 0.8803 MB / 0.5118 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.423, allocations: 119.2 kB / 0.5119 GB, free: 9.148 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.4231, allocations: 64 kB / 0.5119 GB, free: 9.086 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.0008341/0.4239, allocations: 418.2 kB / 0.5123 GB, free: 8.668 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004573/0.4244, allocations: 377.7 kB / 0.5127 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00283/0.4272, allocations: 1.263 MB / 0.5139 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.4272, allocations: 4 kB / 0.5139 GB, free: 7.016 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4272, allocations: 3.938 kB / 0.5139 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.4272, allocations: 7.984 kB / 0.514 GB, free: 7.004 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003694/0.4309, allocations: 2.149 MB / 0.5161 GB, free: 4.781 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.961e-05/0.431, allocations: 75.94 kB / 0.5161 GB, free: 4.707 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.4313, allocations: 63.88 kB / 0.5162 GB, free: 4.645 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000495/0.4318, allocations: 264.9 kB / 0.5164 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.919e-05/0.4319, allocations: 28 kB / 0.5165 GB, free: 4.355 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009769/0.4329, allocations: 0.8676 MB / 0.5173 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.207e-06/0.4329, allocations: 4.031 kB / 0.5173 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.4348, allocations: 1.135 MB / 0.5184 GB, free: 2.285 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007683/0.4356, allocations: 415.2 kB / 0.5188 GB, free: 1.875 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002757/0.4359, allocations: 12 kB / 0.5188 GB, free: 1.863 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006434/0.4365, allocations: 27.97 kB / 0.5189 GB, free: 1.836 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.4367, allocations: 59.92 kB / 0.5189 GB, free: 1.777 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-05/0.4368, allocations: 40 kB / 0.519 GB, free: 1.738 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002519/0.4393, allocations: 1.824 MB / 0.5207 GB, free: 15.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4393, allocations: 0 / 0.5207 GB, free: 15.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001346/0.4406, allocations: 0.5697 MB / 0.5213 GB, free: 15.34 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.003462/0.4441, allocations: 2.366 MB / 0.5236 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.446, allocations: 0.8259 MB / 0.5244 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.446, allocations: 4 kB / 0.5244 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000933/0.4469, allocations: 468.1 kB / 0.5249 GB, free: 11.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/0.4494, allocations: 0.5954 MB / 0.5254 GB, free: 11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2405/0.6899, allocations: 16.02 MB / 0.5411 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001231/0.6912, allocations: 1.602 MB / 0.5426 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001112/0.6923, allocations: 392.7 kB / 0.543 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008449/0.6931, allocations: 1.127 MB / 0.5441 GB, free: 100.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.653e-06/0.6931, allocations: 0 / 0.5441 GB, free: 100.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/0.7936, allocations: 63.17 MB / 0.6058 GB, free: 42.83 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.85/20.64, allocations: 20.59 kB / 0.6058 GB, free: 42.81 MB / 446.1 MB " [Timeout remaining time 639] (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/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 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.144833150028717] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 20.851586548960768 20.860890125 20.513861114 Calling exit ...