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.001258/0.001258, allocations: 105.1 kB / 21.22 MB, free: 0.5078 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.001989/0.001989, allocations: 214.9 kB / 24.51 MB, free: 3.688 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.382/1.382, allocations: 230.6 MB / 258.3 MB, free: 7.812 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.001523/0.001523, allocations: 55.92 kB / 378.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2484, allocations: 53.35 MB / 431.8 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01262/0.261, allocations: 11.85 MB / 443.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02231/0.2833, allocations: 17.52 MB / 461.2 MB, free: 9.195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002202/0.2855, allocations: 189.8 kB / 461.4 MB, free: 9.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002662/0.2882, allocations: 1.026 MB / 462.4 MB, free: 7.977 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006775/0.295, allocations: 2.311 MB / 464.7 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004218/0.2992, allocations: 1.406 MB / 466.1 MB, free: 4.242 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009593/0.3088, allocations: 6.47 MB / 472.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000509/0.3093, allocations: 249 kB / 472.8 MB, free: 13.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001465/0.3107, allocations: 1.12 MB / 474 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001273/0.312, allocations: 1.044 MB / 475 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.3122, allocations: 68 kB / 475.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003122/0.3153, allocations: 1.245 MB / 476.3 MB, free: 9.984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000323/0.3156, allocations: 305.7 kB / 476.6 MB, free: 9.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00106/0.3167, allocations: 0.9585 MB / 477.6 MB, free: 8.719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004412/0.3211, allocations: 3.683 MB / 481.3 MB, free: 5.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3211, allocations: 0 / 481.3 MB, free: 5.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3211, allocations: 0 / 481.3 MB, free: 5.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.457e-05/0.3212, allocations: 0 / 481.3 MB, free: 5.02 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.004906/0.3261, allocations: 3.562 MB / 484.8 MB, free: 1.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3261, allocations: 12.03 kB / 484.8 MB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.348e-05/0.3261, allocations: 13 kB / 484.8 MB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001179/0.3263, allocations: 102.4 kB / 484.9 MB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004261/0.3267, allocations: 389.6 kB / 485.3 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003505/0.3302, allocations: 2.355 MB / 487.7 MB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.774e-05/0.3302, allocations: 37 kB / 487.7 MB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.3304, allocations: 44 kB / 487.8 MB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.3317, allocations: 0.7069 MB / 488.5 MB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.3317, allocations: 4 kB / 488.5 MB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.439e-05/0.3318, allocations: 24 kB / 488.5 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/0.3318, allocations: 19.98 kB / 488.5 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.3333, allocations: 0.7812 MB / 489.3 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00513/0.3384, allocations: 2.695 MB / 492 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.3397, allocations: 0.5557 MB / 492.5 MB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000996/0.3407, allocations: 0.5818 MB / 493.1 MB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0246/0.3653, allocations: 13.7 MB / 0.495 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000766/0.3661, allocations: 361.6 kB / 0.4953 GB, free: 10.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.475e-06/0.3661, allocations: 4 kB / 0.4953 GB, free: 10.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003159/0.3692, allocations: 1.314 MB / 0.4966 GB, free: 9.125 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.3693, allocations: 67.38 kB / 0.4967 GB, free: 9.047 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003571/0.3728, allocations: 2.799 MB / 0.4994 GB, free: 6.227 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.973e-05/0.3729, allocations: 29.7 kB / 0.4994 GB, free: 6.191 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001293/0.3742, allocations: 1.4 MB / 0.5008 GB, free: 4.785 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001719/0.3744, allocations: 170.6 kB / 0.5009 GB, free: 4.617 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003098/0.3747, allocations: 226.4 kB / 0.5012 GB, free: 4.391 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3748, allocations: 334 kB / 0.5015 GB, free: 4.059 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005788/0.3754, allocations: 241.8 kB / 0.5017 GB, free: 3.824 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008618/0.3763, allocations: 0.5888 MB / 0.5023 GB, free: 3.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.3778, allocations: 0.8763 MB / 0.5031 GB, free: 2.023 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.3778, allocations: 4 kB / 0.5031 GB, free: 2.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002732/0.3806, allocations: 1.281 MB / 0.5044 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.3806, allocations: 15.98 kB / 0.5044 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/0.3807, allocations: 88.72 kB / 0.5045 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006081/0.3813, allocations: 276.8 kB / 0.5048 GB, free: 364 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/0.3819, allocations: 167.7 kB / 0.5049 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001103/0.383, allocations: 0.8908 MB / 0.5058 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.3842, allocations: 119.2 kB / 0.5059 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.3843, allocations: 64 kB / 0.506 GB, free: 15.1 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.0007681/0.3851, allocations: 421.5 kB / 0.5064 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004582/0.3855, allocations: 385.5 kB / 0.5067 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002715/0.3882, allocations: 1.251 MB / 0.508 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.3883, allocations: 4 kB / 0.508 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.3883, allocations: 3.938 kB / 0.508 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3883, allocations: 0 / 0.508 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003674/0.3919, allocations: 2.103 MB / 0.51 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001009/0.392, allocations: 68 kB / 0.5101 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003123/0.3924, allocations: 63.88 kB / 0.5101 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005006/0.3929, allocations: 264.9 kB / 0.5104 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.057e-05/0.3929, allocations: 35.98 kB / 0.5104 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009752/0.3939, allocations: 0.8607 MB / 0.5113 GB, free: 9.535 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.3939, allocations: 4.031 kB / 0.5113 GB, free: 9.531 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.3958, allocations: 1.143 MB / 0.5124 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007485/0.3966, allocations: 415.2 kB / 0.5128 GB, free: 7.938 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002774/0.3969, allocations: 8 kB / 0.5128 GB, free: 7.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000685/0.3976, allocations: 35.95 kB / 0.5128 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.3977, allocations: 55.94 kB / 0.5129 GB, free: 7.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.3978, allocations: 43.98 kB / 0.5129 GB, free: 7.797 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002663/0.4005, allocations: 1.816 MB / 0.5147 GB, free: 5.977 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4005, allocations: 4 kB / 0.5147 GB, free: 5.973 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001409/0.4019, allocations: 0.5697 MB / 0.5153 GB, free: 5.402 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.003336/0.4052, allocations: 2.37 MB / 0.5176 GB, free: 2.988 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001761/0.407, allocations: 0.8302 MB / 0.5184 GB, free: 2.137 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.407, allocations: 4 kB / 0.5184 GB, free: 2.133 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000901/0.4079, allocations: 475.9 kB / 0.5188 GB, free: 1.645 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002211/0.4101, allocations: 0.5878 MB / 0.5194 GB, free: 1.051 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02361/0.4337, allocations: 16.02 MB / 0.5351 GB, free: 476 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1906/0.6243, allocations: 1.042 MB / 0.5361 GB, free: 108 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001241/0.6255, allocations: 390.8 kB / 0.5364 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001051/0.6266, allocations: 1.123 MB / 0.5375 GB, free: 107.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.763e-06/0.6266, allocations: 0 / 0.5375 GB, free: 107.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08591/0.7125, allocations: 63.16 MB / 0.5992 GB, free: 51.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.12/19.83, allocations: 15.77 kB / 0.5992 GB, free: 51.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: 22.266076600993983] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 20.03600488801021 20.045360598 19.722015693 Calling exit ...