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.001503/0.001503, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001965/0.001965, allocations: 206.9 kB / 24.51 MB, free: 3.945 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.414/1.414, allocations: 230.5 MB / 258.2 MB, free: 7.805 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.00186/0.00186, allocations: 59.91 kB / 378.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3503, allocations: 53.4 MB / 431.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01394/0.3643, allocations: 11.83 MB / 443.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0243/0.3886, allocations: 17.52 MB / 461.2 MB, free: 9.012 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00457/0.3931, allocations: 189.8 kB / 461.4 MB, free: 8.824 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004758/0.3979, allocations: 1.034 MB / 462.5 MB, free: 7.785 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01193/0.4098, allocations: 2.308 MB / 464.8 MB, free: 5.457 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006034/0.4159, allocations: 1.402 MB / 466.2 MB, free: 4.055 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01198/0.4278, allocations: 6.482 MB / 472.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007235/0.4286, allocations: 252.9 kB / 472.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002314/0.4309, allocations: 1.112 MB / 474 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001444/0.4323, allocations: 1.052 MB / 475.1 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000198/0.4325, allocations: 72 kB / 475.1 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003948/0.4365, allocations: 1.233 MB / 476.4 MB, free: 9.789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000415/0.4369, allocations: 313.7 kB / 476.7 MB, free: 9.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00122/0.4381, allocations: 0.9585 MB / 477.6 MB, free: 8.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007048/0.4452, allocations: 3.683 MB / 481.3 MB, free: 4.816 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.13e-05/0.4452, allocations: 0 / 481.3 MB, free: 4.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4452, allocations: 0 / 481.3 MB, free: 4.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001072/0.4453, allocations: 0 / 481.3 MB, free: 4.816 MB / 382.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.00666/0.4519, allocations: 3.555 MB / 484.9 MB, free: 1.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/0.452, allocations: 8.031 kB / 484.9 MB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.664e-05/0.452, allocations: 16.94 kB / 484.9 MB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001362/0.4522, allocations: 102.5 kB / 485 MB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006233/0.4528, allocations: 393.6 kB / 485.4 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003946/0.4567, allocations: 2.355 MB / 487.7 MB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/0.4568, allocations: 33 kB / 487.8 MB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.4569, allocations: 48 kB / 487.8 MB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.4584, allocations: 0.7031 MB / 488.5 MB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.4584, allocations: 0 / 488.5 MB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-05/0.4584, allocations: 16 kB / 488.5 MB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.215e-05/0.4585, allocations: 23.98 kB / 488.6 MB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/0.4601, allocations: 0.7967 MB / 489.4 MB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005362/0.4655, allocations: 2.688 MB / 492 MB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.4667, allocations: 0.5708 MB / 492.6 MB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.4677, allocations: 0.581 MB / 493.2 MB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02583/0.4936, allocations: 13.69 MB / 0.495 GB, free: 10.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000807/0.4944, allocations: 361.6 kB / 0.4953 GB, free: 10.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.385e-06/0.4944, allocations: 4 kB / 0.4954 GB, free: 10.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003473/0.4979, allocations: 1.318 MB / 0.4966 GB, free: 8.926 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/0.4979, allocations: 63.39 kB / 0.4967 GB, free: 8.852 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003976/0.5019, allocations: 2.799 MB / 0.4994 GB, free: 6.031 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.299e-05/0.502, allocations: 37.7 kB / 0.4995 GB, free: 5.988 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001392/0.5034, allocations: 1.396 MB / 0.5008 GB, free: 4.586 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.5036, allocations: 174.6 kB / 0.501 GB, free: 4.414 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000339/0.5039, allocations: 218.4 kB / 0.5012 GB, free: 4.195 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.5041, allocations: 341.9 kB / 0.5015 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005678/0.5046, allocations: 241.9 kB / 0.5018 GB, free: 3.621 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008745/0.5055, allocations: 0.5849 MB / 0.5023 GB, free: 2.871 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.507, allocations: 0.8802 MB / 0.5032 GB, free: 1.816 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/0.507, allocations: 7.984 kB / 0.5032 GB, free: 1.809 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002437/0.5095, allocations: 1.281 MB / 0.5045 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.5095, allocations: 12 kB / 0.5045 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001372/0.5096, allocations: 83.94 kB / 0.5045 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006136/0.5102, allocations: 273.5 kB / 0.5048 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005912/0.5108, allocations: 171.8 kB / 0.505 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.5119, allocations: 0.8871 MB / 0.5058 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.513, allocations: 119.2 kB / 0.506 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.5131, allocations: 64 kB / 0.506 GB, free: 14.9 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.0007471/0.5139, allocations: 414.2 kB / 0.5064 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/0.5143, allocations: 381.6 kB / 0.5068 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/0.5171, allocations: 1.263 MB / 0.508 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.5171, allocations: 4 kB / 0.508 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/0.5171, allocations: 7.938 kB / 0.508 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.956e-06/0.5172, allocations: 3.984 kB / 0.508 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004167/0.5213, allocations: 2.095 MB / 0.5101 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001246/0.5214, allocations: 71.98 kB / 0.5101 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003236/0.5218, allocations: 63.89 kB / 0.5102 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004999/0.5223, allocations: 256.9 kB / 0.5104 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-05/0.5223, allocations: 39.92 kB / 0.5105 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000977/0.5233, allocations: 0.8681 MB / 0.5113 GB, free: 9.332 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.5233, allocations: 3.938 kB / 0.5113 GB, free: 9.328 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.5254, allocations: 1.146 MB / 0.5124 GB, free: 8.141 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.5265, allocations: 403.3 kB / 0.5128 GB, free: 7.742 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002901/0.5268, allocations: 15.98 kB / 0.5128 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006333/0.5274, allocations: 27.97 kB / 0.5129 GB, free: 7.699 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.5276, allocations: 63.92 kB / 0.5129 GB, free: 7.637 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.145e-05/0.5277, allocations: 36 kB / 0.513 GB, free: 7.602 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002719/0.5304, allocations: 1.824 MB / 0.5148 GB, free: 5.773 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5304, allocations: 0 / 0.5148 GB, free: 5.773 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001453/0.5319, allocations: 0.5697 MB / 0.5153 GB, free: 5.203 MB / 430.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.5353, allocations: 2.37 MB / 0.5176 GB, free: 2.789 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001849/0.5371, allocations: 0.8298 MB / 0.5184 GB, free: 1.938 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.5371, allocations: 4 kB / 0.5184 GB, free: 1.934 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009118/0.538, allocations: 467.9 kB / 0.5189 GB, free: 1.453 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/0.5406, allocations: 0.5956 MB / 0.5195 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02557/0.5662, allocations: 16.01 MB / 0.5351 GB, free: 288 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2583/0.8245, allocations: 1.045 MB / 0.5361 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001397/0.8259, allocations: 389.5 kB / 0.5365 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001126/0.827, allocations: 1.123 MB / 0.5376 GB, free: 106.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.583e-06/0.827, allocations: 0 / 0.5376 GB, free: 106.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09067/0.9177, allocations: 63.13 MB / 0.5992 GB, free: 49.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.74/20.66, allocations: 7.344 kB / 0.5992 GB, free: 49.85 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.208082847995684] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 20.869900863035582 20.878835384 20.431109531 Calling exit ...