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.001282/0.001282, allocations: 116.6 kB / 18.49 MB, free: 4.566 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.001344/0.001344, allocations: 189 kB / 21.43 MB, free: 1.641 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.385/1.385, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.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.001444/0.001444, allocations: 47.92 kB / 366.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09864/0.1001, allocations: 52.14 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01372/0.1138, allocations: 14.06 MB / 432.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.214/0.3278, allocations: 20.31 MB / 452.8 MB, free: 6.867 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00191/0.3297, allocations: 190.2 kB / 453 MB, free: 6.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002762/0.3325, allocations: 1.128 MB / 454.2 MB, free: 6.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006639/0.3391, allocations: 2.285 MB / 456.4 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004475/0.3436, allocations: 1.439 MB / 457.9 MB, free: 5.918 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00966/0.3532, allocations: 6.375 MB / 464.3 MB, free: 4.879 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006881/0.3539, allocations: 251.2 kB / 464.5 MB, free: 4.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002017/0.356, allocations: 1.105 MB / 465.6 MB, free: 4.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001351/0.3573, allocations: 1.058 MB / 466.7 MB, free: 4.062 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001684/0.3575, allocations: 68.75 kB / 466.7 MB, free: 4.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00431/0.3618, allocations: 1.464 MB / 468.2 MB, free: 4.004 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002845/0.3621, allocations: 309.3 kB / 468.5 MB, free: 3.871 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001345/0.3634, allocations: 1.303 MB / 469.8 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005244/0.3687, allocations: 3.647 MB / 473.5 MB, free: 1.988 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3687, allocations: 0 / 473.5 MB, free: 1.988 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3687, allocations: 4 kB / 473.5 MB, free: 1.984 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.492e-05/0.3687, allocations: 0 / 473.5 MB, free: 1.984 MB / 366.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.005196/0.3739, allocations: 3.624 MB / 477.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.374, allocations: 10.53 kB / 477.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.007e-05/0.374, allocations: 14.06 kB / 477.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001254/0.3741, allocations: 98.67 kB / 477.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005527/0.3747, allocations: 389.8 kB / 477.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003549/0.3782, allocations: 2.535 MB / 480.1 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.82e-05/0.3783, allocations: 38.86 kB / 480.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.3784, allocations: 52.86 kB / 480.2 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.3797, allocations: 0.6988 MB / 480.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.3797, allocations: 1.062 kB / 480.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.98e-05/0.3798, allocations: 19.78 kB / 480.9 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/0.3798, allocations: 20.08 kB / 480.9 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.3813, allocations: 0.7913 MB / 481.7 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005298/0.3866, allocations: 2.889 MB / 484.6 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.3879, allocations: 0.6329 MB / 485.3 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009841/0.3889, allocations: 0.5795 MB / 485.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03124/0.4201, allocations: 30.1 MB / 0.5038 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008192/0.4209, allocations: 357.7 kB / 0.5042 GB, free: 9.797 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.224e-06/0.4209, allocations: 0 / 0.5042 GB, free: 9.797 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003564/0.4245, allocations: 1.393 MB / 0.5055 GB, free: 8.371 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.4246, allocations: 61.5 kB / 0.5056 GB, free: 8.301 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003955/0.4285, allocations: 2.806 MB / 0.5083 GB, free: 5.477 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.401e-05/0.4286, allocations: 33.7 kB / 0.5084 GB, free: 5.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.4299, allocations: 1.403 MB / 0.5097 GB, free: 4.031 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.4301, allocations: 172.6 kB / 0.5099 GB, free: 3.867 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003161/0.4304, allocations: 226.4 kB / 0.5101 GB, free: 3.641 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.4306, allocations: 333.9 kB / 0.5104 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005864/0.4312, allocations: 241.8 kB / 0.5107 GB, free: 3.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008682/0.4321, allocations: 0.5896 MB / 0.5113 GB, free: 2.309 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001666/0.4337, allocations: 0.8821 MB / 0.5121 GB, free: 1.258 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.4337, allocations: 4 kB / 0.5121 GB, free: 1.254 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002779/0.4365, allocations: 1.284 MB / 0.5134 GB, free: 15.96 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.4365, allocations: 12.61 kB / 0.5134 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/0.4367, allocations: 80.75 kB / 0.5135 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005918/0.4372, allocations: 277.2 kB / 0.5137 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005874/0.4378, allocations: 171.7 kB / 0.5139 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.4389, allocations: 0.8827 MB / 0.5148 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.4402, allocations: 119.2 kB / 0.5149 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.4403, allocations: 64 kB / 0.5149 GB, free: 14.35 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.000811/0.4411, allocations: 418.1 kB / 0.5153 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005168/0.4417, allocations: 389.6 kB / 0.5157 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002946/0.4446, allocations: 1.261 MB / 0.5169 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.4446, allocations: 8 kB / 0.5169 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.4446, allocations: 4 kB / 0.5169 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.4446, allocations: 0 / 0.5169 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004113/0.4487, allocations: 2.19 MB / 0.5191 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001001/0.4488, allocations: 72.5 kB / 0.5191 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003208/0.4492, allocations: 63.88 kB / 0.5192 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005263/0.4497, allocations: 266.8 kB / 0.5195 GB, free: 9.617 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.009e-05/0.4497, allocations: 32 kB / 0.5195 GB, free: 9.586 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.4508, allocations: 0.8599 MB / 0.5203 GB, free: 8.707 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.4508, allocations: 11.91 kB / 0.5203 GB, free: 8.695 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/0.453, allocations: 1.131 MB / 0.5214 GB, free: 7.527 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.4541, allocations: 482.5 kB / 0.5219 GB, free: 7.035 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00027/0.4544, allocations: 8 kB / 0.5219 GB, free: 7.027 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006487/0.455, allocations: 43.89 kB / 0.522 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.4552, allocations: 55.95 kB / 0.522 GB, free: 6.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.392e-05/0.4553, allocations: 43.98 kB / 0.5221 GB, free: 6.887 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002605/0.4579, allocations: 1.816 MB / 0.5238 GB, free: 5.066 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4579, allocations: 0 / 0.5238 GB, free: 5.066 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001512/0.4594, allocations: 0.5696 MB / 0.5244 GB, free: 4.496 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.00355/0.4629, allocations: 2.379 MB / 0.5267 GB, free: 2.227 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001858/0.4648, allocations: 0.8151 MB / 0.5275 GB, free: 1.391 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.4648, allocations: 0 / 0.5275 GB, free: 1.391 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009457/0.4657, allocations: 475.2 kB / 0.528 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002557/0.4683, allocations: 0.5866 MB / 0.5285 GB, free: 328 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02408/0.4924, allocations: 16.03 MB / 0.5442 GB, free: 15.74 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/0.4936, allocations: 1.604 MB / 0.5458 GB, free: 14.11 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001091/0.4947, allocations: 390.9 kB / 0.5461 GB, free: 13.72 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001323/0.496, allocations: 1.124 MB / 0.5472 GB, free: 12.6 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.496, allocations: 0 / 0.5472 GB, free: 12.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1159/0.6119, allocations: 62.55 MB / 0.6083 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.74/19.36, allocations: 4 kB / 0.6083 GB, free: 14.42 MB / 0.5137 GB " [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: 21.84379449102562] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 19.54132908396423 19.556560579 19.18492577 Calling exit ...