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.001419/0.001419, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001568/0.001568, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.501/1.501, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.001994/0.001994, allocations: 60.77 kB / 378.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2761, allocations: 53.37 MB / 431.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01555/0.2916, allocations: 14.08 MB / 446 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02705/0.3187, allocations: 20.38 MB / 466.4 MB, free: 4.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003564/0.3222, allocations: 193.8 kB / 466.6 MB, free: 4.129 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003561/0.3258, allocations: 1.126 MB / 467.7 MB, free: 3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008146/0.3339, allocations: 2.32 MB / 470 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005092/0.339, allocations: 1.445 MB / 471.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0118/0.3508, allocations: 6.47 MB / 477.9 MB, free: 8.723 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008939/0.3517, allocations: 252.9 kB / 478.2 MB, free: 8.441 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002148/0.3539, allocations: 1.101 MB / 479.3 MB, free: 7.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00179/0.3556, allocations: 1.06 MB / 480.3 MB, free: 6.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001997/0.3558, allocations: 72 kB / 480.4 MB, free: 6.199 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004306/0.3602, allocations: 1.479 MB / 481.9 MB, free: 4.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004283/0.3606, allocations: 309.7 kB / 482.2 MB, free: 4.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001779/0.3624, allocations: 1.3 MB / 483.5 MB, free: 3.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006814/0.3692, allocations: 3.648 MB / 487.1 MB, free: 15.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3692, allocations: 0 / 487.1 MB, free: 15.44 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3692, allocations: 3.938 kB / 487.1 MB, free: 15.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.513e-05/0.3692, allocations: 0 / 487.1 MB, free: 15.43 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.005578/0.3748, allocations: 3.558 MB / 490.7 MB, free: 11.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.3749, allocations: 8.031 kB / 490.7 MB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/0.375, allocations: 98.5 kB / 490.8 MB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005507/0.3756, allocations: 389.6 kB / 491.2 MB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003918/0.3795, allocations: 2.355 MB / 493.5 MB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/0.3795, allocations: 29 kB / 493.6 MB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.3797, allocations: 55.94 kB / 493.6 MB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.381, allocations: 0.7031 MB / 494.3 MB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.381, allocations: 0 / 494.3 MB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.465e-05/0.3811, allocations: 20 kB / 494.3 MB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/0.3811, allocations: 19.98 kB / 494.4 MB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.3827, allocations: 0.7928 MB / 495.1 MB, free: 7.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005132/0.3878, allocations: 2.828 MB / 498 MB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.389, allocations: 0.5597 MB / 498.5 MB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009948/0.39, allocations: 0.5856 MB / 499.1 MB, free: 3.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02532/0.4153, allocations: 13.76 MB / 0.5009 GB, free: 5.062 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00079/0.4161, allocations: 361.6 kB / 0.5012 GB, free: 4.699 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.515e-06/0.4161, allocations: 4 kB / 0.5012 GB, free: 4.695 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003353/0.4195, allocations: 1.314 MB / 0.5025 GB, free: 3.367 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/0.4195, allocations: 63.39 kB / 0.5026 GB, free: 3.293 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003757/0.4233, allocations: 2.799 MB / 0.5053 GB, free: 484 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.395e-05/0.4234, allocations: 33.7 kB / 0.5053 GB, free: 444 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.4247, allocations: 1.4 MB / 0.5067 GB, free: 15.03 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.4249, allocations: 170.6 kB / 0.5069 GB, free: 14.86 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003208/0.4252, allocations: 230.4 kB / 0.5071 GB, free: 14.63 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.4254, allocations: 337.9 kB / 0.5074 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006029/0.426, allocations: 233.9 kB / 0.5076 GB, free: 14.06 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008592/0.4268, allocations: 0.5927 MB / 0.5082 GB, free: 13.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.4283, allocations: 0.8841 MB / 0.5091 GB, free: 12.25 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/0.4284, allocations: 4 kB / 0.5091 GB, free: 12.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002531/0.4309, allocations: 1.278 MB / 0.5103 GB, free: 10.96 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.4309, allocations: 8 kB / 0.5103 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/0.431, allocations: 80 kB / 0.5104 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005867/0.4316, allocations: 292.8 kB / 0.5107 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006146/0.4322, allocations: 171.6 kB / 0.5108 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001045/0.4333, allocations: 0.8862 MB / 0.5117 GB, free: 9.508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/0.4343, allocations: 115.3 kB / 0.5118 GB, free: 9.395 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.4345, allocations: 64 kB / 0.5119 GB, free: 9.332 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.0008419/0.4353, allocations: 421.5 kB / 0.5123 GB, free: 8.91 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004693/0.4358, allocations: 381.6 kB / 0.5126 GB, free: 8.535 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002836/0.4386, allocations: 1.255 MB / 0.5139 GB, free: 7.266 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.4386, allocations: 4 kB / 0.5139 GB, free: 7.262 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4386, allocations: 0 / 0.5139 GB, free: 7.262 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.4386, allocations: 7.922 kB / 0.5139 GB, free: 7.254 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003882/0.4425, allocations: 2.153 MB / 0.516 GB, free: 5.027 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001059/0.4426, allocations: 68 kB / 0.516 GB, free: 4.961 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003377/0.443, allocations: 71.94 kB / 0.5161 GB, free: 4.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004991/0.4435, allocations: 256.8 kB / 0.5164 GB, free: 4.637 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.497e-05/0.4435, allocations: 39.98 kB / 0.5164 GB, free: 4.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.4446, allocations: 0.8599 MB / 0.5172 GB, free: 3.715 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.4446, allocations: 3.938 kB / 0.5172 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.4467, allocations: 1.139 MB / 0.5184 GB, free: 2.531 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009393/0.4477, allocations: 411.2 kB / 0.5187 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002695/0.4479, allocations: 12 kB / 0.5188 GB, free: 2.113 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006177/0.4486, allocations: 31.95 kB / 0.5188 GB, free: 2.082 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.4487, allocations: 63.88 kB / 0.5188 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.987e-05/0.4488, allocations: 43.98 kB / 0.5189 GB, free: 1.977 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002645/0.4515, allocations: 1.824 MB / 0.5207 GB, free: 152 kB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4515, allocations: 0 / 0.5207 GB, free: 152 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.00145/0.4529, allocations: 0.5619 MB / 0.5212 GB, free: 15.59 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.003477/0.4564, allocations: 2.367 MB / 0.5235 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.4583, allocations: 0.8264 MB / 0.5243 GB, free: 12.33 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4583, allocations: 0 / 0.5243 GB, free: 12.33 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009445/0.4592, allocations: 475.9 kB / 0.5248 GB, free: 11.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/0.4616, allocations: 0.6033 MB / 0.5254 GB, free: 11.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2317/0.6933, allocations: 16.02 MB / 0.541 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/0.6945, allocations: 1.6 MB / 0.5426 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001235/0.6957, allocations: 391.8 kB / 0.543 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009693/0.6967, allocations: 1.127 MB / 0.5441 GB, free: 100.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.6967, allocations: 0 / 0.5441 GB, free: 100.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1023/0.799, allocations: 63.13 MB / 0.6057 GB, free: 43.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.1/20.9, allocations: 7.266 kB / 0.6057 GB, free: 43.16 MB / 446.1 MB " [Timeout remaining time 639] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand_res.csv --start-time 0 --stop-time 2e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98724e-11 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: 23.565827804151922] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 21.036534887272865 21.053896801 20.680972168 Calling exit ...