Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001422/0.001422, allocations: 109 kB / 21.23 MB, free: 0.6719 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.001759/0.001759, allocations: 209.2 kB / 24.53 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.48/1.48, allocations: 230.6 MB / 258.3 MB, free: 8.051 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-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 63.89 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.271, allocations: 53.37 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01526/0.2862, allocations: 14.08 MB / 446 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02708/0.3133, allocations: 20.38 MB / 466.4 MB, free: 4.305 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002878/0.3162, allocations: 189.8 kB / 466.6 MB, free: 4.117 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003405/0.3196, allocations: 1.13 MB / 467.7 MB, free: 2.984 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008696/0.3283, allocations: 2.32 MB / 470 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005187/0.3335, allocations: 1.449 MB / 471.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01123/0.3447, allocations: 6.47 MB / 477.9 MB, free: 8.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007057/0.3454, allocations: 256.9 kB / 478.2 MB, free: 8.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001861/0.3473, allocations: 1.104 MB / 479.3 MB, free: 7.309 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.3488, allocations: 1.052 MB / 480.3 MB, free: 6.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001924/0.349, allocations: 72 kB / 480.4 MB, free: 6.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004463/0.3535, allocations: 1.479 MB / 481.9 MB, free: 4.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003825/0.3539, allocations: 309.7 kB / 482.2 MB, free: 4.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00157/0.3554, allocations: 1.3 MB / 483.5 MB, free: 3.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00602/0.3614, allocations: 3.648 MB / 487.1 MB, free: 15.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3615, allocations: 4 kB / 487.1 MB, free: 15.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3615, allocations: 3.938 kB / 487.1 MB, free: 15.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.199e-05/0.3615, allocations: 0 / 487.1 MB, free: 15.41 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.005546/0.3671, allocations: 3.555 MB / 490.7 MB, free: 11.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3671, allocations: 8.031 kB / 490.7 MB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001303/0.3672, allocations: 94.5 kB / 490.8 MB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005037/0.3677, allocations: 389.6 kB / 491.2 MB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003777/0.3715, allocations: 2.355 MB / 493.5 MB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.3716, allocations: 37 kB / 493.6 MB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.3717, allocations: 47.95 kB / 493.6 MB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.373, allocations: 0.707 MB / 494.3 MB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.3731, allocations: 0 / 494.3 MB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.287e-05/0.3731, allocations: 16 kB / 494.3 MB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.701e-05/0.3732, allocations: 23.98 kB / 494.4 MB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.3747, allocations: 0.7928 MB / 495.1 MB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005142/0.3798, allocations: 2.82 MB / 498 MB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.3811, allocations: 0.5714 MB / 498.5 MB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009988/0.3821, allocations: 0.5817 MB / 499.1 MB, free: 3.195 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02535/0.4074, allocations: 13.76 MB / 0.5009 GB, free: 5.051 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008168/0.4082, allocations: 365.6 kB / 0.5012 GB, free: 4.684 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.885e-06/0.4082, allocations: 0 / 0.5012 GB, free: 4.684 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003502/0.4117, allocations: 1.326 MB / 0.5025 GB, free: 3.344 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.4118, allocations: 55.41 kB / 0.5026 GB, free: 3.277 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003923/0.4157, allocations: 2.803 MB / 0.5053 GB, free: 464 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.604e-05/0.4158, allocations: 33.7 kB / 0.5053 GB, free: 424 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001345/0.4171, allocations: 1.404 MB / 0.5067 GB, free: 15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000175/0.4173, allocations: 170.6 kB / 0.5069 GB, free: 14.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003322/0.4176, allocations: 230.4 kB / 0.5071 GB, free: 14.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4178, allocations: 330 kB / 0.5074 GB, free: 14.28 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000581/0.4184, allocations: 237.9 kB / 0.5076 GB, free: 14.04 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008815/0.4193, allocations: 0.5966 MB / 0.5082 GB, free: 13.28 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.4207, allocations: 0.8841 MB / 0.5091 GB, free: 12.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.4207, allocations: 3.938 kB / 0.5091 GB, free: 12.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002385/0.4231, allocations: 1.285 MB / 0.5103 GB, free: 10.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.4232, allocations: 8 kB / 0.5103 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001201/0.4233, allocations: 83.98 kB / 0.5104 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005895/0.4239, allocations: 274.8 kB / 0.5107 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005811/0.4245, allocations: 175.6 kB / 0.5108 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.4255, allocations: 0.8842 MB / 0.5117 GB, free: 9.488 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.4265, allocations: 115.2 kB / 0.5118 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.4267, allocations: 67.98 kB / 0.5119 GB, free: 9.309 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.0007913/0.4274, allocations: 417.5 kB / 0.5123 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004041/0.4278, allocations: 377.7 kB / 0.5126 GB, free: 8.52 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002748/0.4306, allocations: 1.259 MB / 0.5139 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.4306, allocations: 8 kB / 0.5139 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4306, allocations: 0 / 0.5139 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.4306, allocations: 7.938 kB / 0.5139 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003815/0.4344, allocations: 2.149 MB / 0.516 GB, free: 5.008 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001081/0.4345, allocations: 76.11 kB / 0.516 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003034/0.4348, allocations: 63.83 kB / 0.5161 GB, free: 4.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005116/0.4354, allocations: 267.6 kB / 0.5164 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.929e-05/0.4354, allocations: 32 kB / 0.5164 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.4364, allocations: 0.8491 MB / 0.5172 GB, free: 3.703 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.355e-06/0.4364, allocations: 7.969 kB / 0.5172 GB, free: 3.695 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/0.4386, allocations: 1.15 MB / 0.5184 GB, free: 2.504 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008434/0.4394, allocations: 411.2 kB / 0.5187 GB, free: 2.098 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002619/0.4397, allocations: 11.98 kB / 0.5188 GB, free: 2.086 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006606/0.4403, allocations: 31.97 kB / 0.5188 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.4405, allocations: 63.92 kB / 0.5189 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.506e-05/0.4406, allocations: 36 kB / 0.5189 GB, free: 1.957 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002693/0.4433, allocations: 1.824 MB / 0.5207 GB, free: 132 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4433, allocations: 0 / 0.5207 GB, free: 132 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001391/0.4446, allocations: 0.5658 MB / 0.5212 GB, free: 15.56 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.003413/0.4481, allocations: 2.371 MB / 0.5235 GB, free: 13.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001851/0.4499, allocations: 0.8225 MB / 0.5243 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4499, allocations: 0 / 0.5243 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009227/0.4508, allocations: 480.2 kB / 0.5248 GB, free: 11.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/0.4532, allocations: 0.5912 MB / 0.5254 GB, free: 11.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2502/0.7034, allocations: 16.02 MB / 0.541 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/0.7047, allocations: 1.602 MB / 0.5426 GB, free: 101.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001258/0.7059, allocations: 395.3 kB / 0.543 GB, free: 101.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009528/0.7069, allocations: 1.124 MB / 0.5441 GB, free: 100.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.443e-06/0.7069, allocations: 0 / 0.5441 GB, free: 100.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09724/0.8041, allocations: 63.14 MB / 0.6057 GB, free: 43.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.53/20.34, allocations: 0 / 0.6057 GB, free: 43.22 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 22.870788143016398] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 20.47253053402528 20.488767518 20.123954747 Calling exit ...