Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 108.6 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00201/0.00201, allocations: 192.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 43.92 kB / 371.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2454, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.0149/0.2603, allocations: 14.07 MB / 437.5 MB, free: 480 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02479/0.2851, allocations: 20.34 MB / 457.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00262/0.2877, allocations: 189.8 kB / 458 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002988/0.2907, allocations: 1.122 MB / 459.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007386/0.2981, allocations: 2.328 MB / 461.5 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004732/0.3028, allocations: 1.441 MB / 462.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01021/0.313, allocations: 6.396 MB / 469.3 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005802/0.3136, allocations: 249 kB / 469.5 MB, free: 260 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001591/0.3152, allocations: 1.101 MB / 470.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001304/0.3165, allocations: 1.06 MB / 471.7 MB, free: 14.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.3166, allocations: 72 kB / 471.8 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003743/0.3204, allocations: 1.471 MB / 473.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003054/0.3207, allocations: 309.8 kB / 473.5 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.3219, allocations: 1.3 MB / 474.8 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004652/0.3265, allocations: 3.651 MB / 478.5 MB, free: 7.258 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3266, allocations: 0 / 478.5 MB, free: 7.258 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3266, allocations: 0 / 478.5 MB, free: 7.258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.673e-05/0.3266, allocations: 0 / 478.5 MB, free: 7.258 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.005078/0.3317, allocations: 3.551 MB / 482 MB, free: 3.652 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.3317, allocations: 12.03 kB / 482.1 MB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.341e-05/0.3317, allocations: 13 kB / 482.1 MB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001238/0.3319, allocations: 94.52 kB / 482.2 MB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004328/0.3323, allocations: 393.5 kB / 482.5 MB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003677/0.336, allocations: 2.358 MB / 484.9 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.336, allocations: 37 kB / 484.9 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.3361, allocations: 51.95 kB / 485 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.3374, allocations: 0.7031 MB / 485.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3375, allocations: 0 / 485.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.141e-05/0.3375, allocations: 27.92 kB / 485.7 MB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.3375, allocations: 16 kB / 485.7 MB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.3391, allocations: 0.8006 MB / 486.5 MB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00466/0.3438, allocations: 2.835 MB / 489.4 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.345, allocations: 0.5597 MB / 489.9 MB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009989/0.346, allocations: 0.5772 MB / 490.5 MB, free: 11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02654/0.3725, allocations: 13.72 MB / 0.4924 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008366/0.3734, allocations: 365.6 kB / 0.4928 GB, free: 12.53 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.865e-06/0.3734, allocations: 0 / 0.4928 GB, free: 12.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003445/0.3768, allocations: 1.322 MB / 0.494 GB, free: 11.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.3769, allocations: 63.39 kB / 0.4941 GB, free: 11.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003464/0.3803, allocations: 2.803 MB / 0.4968 GB, free: 8.297 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.215e-05/0.3804, allocations: 29.7 kB / 0.4969 GB, free: 8.262 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.3817, allocations: 1.404 MB / 0.4982 GB, free: 6.852 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.3818, allocations: 166.6 kB / 0.4984 GB, free: 6.688 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000302/0.3821, allocations: 234.3 kB / 0.4986 GB, free: 6.453 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3823, allocations: 337.9 kB / 0.4989 GB, free: 6.117 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005688/0.3828, allocations: 233.9 kB / 0.4992 GB, free: 5.891 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008504/0.3837, allocations: 0.5927 MB / 0.4997 GB, free: 5.129 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.3852, allocations: 0.888 MB / 0.5006 GB, free: 4.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.3852, allocations: 0 / 0.5006 GB, free: 4.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002242/0.3874, allocations: 1.289 MB / 0.5019 GB, free: 2.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.3874, allocations: 8 kB / 0.5019 GB, free: 2.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001128/0.3875, allocations: 83.94 kB / 0.502 GB, free: 2.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005528/0.3881, allocations: 274.7 kB / 0.5022 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005642/0.3887, allocations: 171.6 kB / 0.5024 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009849/0.3896, allocations: 0.8764 MB / 0.5032 GB, free: 1.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008926/0.3905, allocations: 111.4 kB / 0.5033 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.3906, allocations: 64 kB / 0.5034 GB, free: 1.168 MB / 414.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.0006393/0.3913, allocations: 423.1 kB / 0.5038 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003667/0.3916, allocations: 389.5 kB / 0.5042 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002754/0.3944, allocations: 1.266 MB / 0.5054 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.3944, allocations: 4 kB / 0.5054 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.3944, allocations: 7.938 kB / 0.5054 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3944, allocations: 3.984 kB / 0.5054 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003498/0.3979, allocations: 2.145 MB / 0.5075 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.656e-05/0.398, allocations: 68 kB / 0.5076 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003029/0.3983, allocations: 72 kB / 0.5077 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004737/0.3988, allocations: 260.8 kB / 0.5079 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.074e-05/0.3989, allocations: 31.98 kB / 0.5079 GB, free: 12.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009302/0.3998, allocations: 0.8636 MB / 0.5088 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3998, allocations: 4.031 kB / 0.5088 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.4017, allocations: 1.139 MB / 0.5099 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007409/0.4024, allocations: 407.3 kB / 0.5103 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002642/0.4027, allocations: 15.94 kB / 0.5103 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006338/0.4033, allocations: 31.95 kB / 0.5103 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.4035, allocations: 63.88 kB / 0.5104 GB, free: 9.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.052e-05/0.4035, allocations: 39.98 kB / 0.5104 GB, free: 9.809 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002298/0.4058, allocations: 1.824 MB / 0.5122 GB, free: 7.98 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4058, allocations: 0 / 0.5122 GB, free: 7.98 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001279/0.4071, allocations: 0.5696 MB / 0.5128 GB, free: 7.41 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.003246/0.4104, allocations: 2.37 MB / 0.5151 GB, free: 5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.4121, allocations: 0.826 MB / 0.5159 GB, free: 4.148 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4121, allocations: 0 / 0.5159 GB, free: 4.148 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009046/0.4131, allocations: 460.6 kB / 0.5163 GB, free: 3.676 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/0.4154, allocations: 0.6023 MB / 0.5169 GB, free: 3.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02383/0.4392, allocations: 16.03 MB / 0.5326 GB, free: 2.477 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001223/0.4404, allocations: 1.608 MB / 0.5341 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001089/0.4415, allocations: 390.9 kB / 0.5345 GB, free: 460 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1918/0.6333, allocations: 1.122 MB / 0.5356 GB, free: 111 MB / 446.1 MB Notification: Performance of SimCode: time 1.322e-06/0.6333, allocations: 0 / 0.5356 GB, free: 111 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08703/0.7204, allocations: 63.13 MB / 0.5973 GB, free: 56.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.09/19.81, allocations: 8.078 kB / 0.5973 GB, free: 56.92 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 22.248444976983592] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 20.015508389973547 20.025113663 19.696298563 Calling exit ...