Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00632/0.00632, allocations: 114.1 kB / 21.97 MB, free: 5.227 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.001482/0.001482, allocations: 211 kB / 25.28 MB, free: 3.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 207.6 MB / 236 MB, free: 9.977 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001736, allocations: 52.27 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2411, allocations: 49.16 MB / 397.1 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01062/0.2517, allocations: 13.42 MB / 410.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02416/0.2759, allocations: 19.4 MB / 429.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003627/0.2795, allocations: 196.1 kB / 430.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004084/0.2836, allocations: 1.11 MB / 431.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009618/0.2932, allocations: 2.283 MB / 433.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005483/0.2987, allocations: 1.383 MB / 434.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01051/0.3092, allocations: 6.269 MB / 441.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006294/0.3098, allocations: 253 kB / 441.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001702/0.3116, allocations: 1.011 MB / 442.4 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001525/0.3131, allocations: 1.036 MB / 443.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001911/0.3133, allocations: 68 kB / 443.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004444/0.3177, allocations: 1.152 MB / 444.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003603/0.3181, allocations: 305.7 kB / 445 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001539/0.3196, allocations: 1.312 MB / 446.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008741/0.3284, allocations: 3.679 MB / 450 MB, free: 14.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3284, allocations: 0 / 450 MB, free: 14.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3284, allocations: 0 / 450 MB, free: 14.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001332/0.3285, allocations: 4 kB / 450 MB, free: 14.26 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.00631/0.3348, allocations: 3.574 MB / 453.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.3348, allocations: 15.98 kB / 453.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.896e-05/0.3349, allocations: 16.94 kB / 453.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.335, allocations: 98.44 kB / 453.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005288/0.3355, allocations: 389.6 kB / 454.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004024/0.3396, allocations: 2.378 MB / 456.4 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.829e-05/0.3396, allocations: 33 kB / 456.5 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.3397, allocations: 47.95 kB / 456.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.3411, allocations: 0.7108 MB / 457.2 MB, free: 6.832 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.3411, allocations: 0 / 457.2 MB, free: 6.832 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.616e-05/0.3411, allocations: 16 kB / 457.2 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.3412, allocations: 23.98 kB / 457.3 MB, free: 6.793 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.3427, allocations: 0.7968 MB / 458.1 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005055/0.3478, allocations: 2.84 MB / 460.9 MB, free: 3.109 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001276/0.349, allocations: 0.5673 MB / 461.5 MB, free: 2.531 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.3501, allocations: 0.5849 MB / 462.1 MB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02554/0.3756, allocations: 13.77 MB / 475.8 MB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008119/0.3764, allocations: 365.4 kB / 476.2 MB, free: 3.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.3764, allocations: 3.938 kB / 476.2 MB, free: 3.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.00345/0.3799, allocations: 1.326 MB / 477.5 MB, free: 2.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.3799, allocations: 55.41 kB / 477.6 MB, free: 2.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/0.3838, allocations: 2.816 MB / 480.4 MB, free: 15.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.3839, allocations: 41.69 kB / 480.4 MB, free: 15.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001353/0.3852, allocations: 1.396 MB / 481.8 MB, free: 13.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002204/0.3855, allocations: 178.6 kB / 482 MB, free: 13.55 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003314/0.3858, allocations: 230.4 kB / 482.2 MB, free: 13.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.386, allocations: 334 kB / 482.5 MB, free: 12.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006032/0.3866, allocations: 237.9 kB / 482.8 MB, free: 12.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009078/0.3875, allocations: 0.5927 MB / 483.4 MB, free: 11.99 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.389, allocations: 0.8802 MB / 484.3 MB, free: 10.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.3891, allocations: 4 kB / 484.3 MB, free: 10.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002452/0.3915, allocations: 1.293 MB / 485.6 MB, free: 9.633 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.044e-05/0.3915, allocations: 12 kB / 485.6 MB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/0.3917, allocations: 83.98 kB / 485.6 MB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005558/0.3922, allocations: 273.1 kB / 485.9 MB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005566/0.3928, allocations: 167.7 kB / 486.1 MB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000992/0.3938, allocations: 0.8803 MB / 487 MB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009935/0.3948, allocations: 119.2 kB / 487.1 MB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.3949, allocations: 64 kB / 487.1 MB, free: 8.02 MB / 398.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.0007736/0.3956, allocations: 425.5 kB / 487.5 MB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004186/0.3961, allocations: 381.6 kB / 487.9 MB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002776/0.3988, allocations: 1.275 MB / 489.2 MB, free: 5.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.3989, allocations: 8 kB / 489.2 MB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3989, allocations: 0 / 489.2 MB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.3989, allocations: 3.938 kB / 489.2 MB, free: 5.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/0.4027, allocations: 2.169 MB / 491.4 MB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000106/0.4028, allocations: 72 kB / 491.4 MB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.4031, allocations: 63.88 kB / 491.5 MB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004969/0.4036, allocations: 256.9 kB / 491.8 MB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.068e-05/0.4037, allocations: 39.98 kB / 491.8 MB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009644/0.4046, allocations: 0.8761 MB / 492.7 MB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.4046, allocations: 4.031 kB / 492.7 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002138/0.4068, allocations: 1.131 MB / 493.8 MB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007917/0.4076, allocations: 411.3 kB / 494.2 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000262/0.4078, allocations: 12 kB / 494.2 MB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006204/0.4084, allocations: 35.95 kB / 494.3 MB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.4086, allocations: 55.94 kB / 494.3 MB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.37e-05/0.4087, allocations: 43.98 kB / 494.4 MB, free: 0.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002681/0.4113, allocations: 1.832 MB / 496.2 MB, free: 14.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4113, allocations: 0 / 496.2 MB, free: 14.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00131/0.4127, allocations: 0.5813 MB / 496.8 MB, free: 14.21 MB / 414.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.003317/0.416, allocations: 2.364 MB / 499.1 MB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.4178, allocations: 0.8249 MB / 500 MB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4178, allocations: 0.9375 kB / 500 MB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009218/0.4187, allocations: 476 kB / 0.4887 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.4205, allocations: 0.5054 MB / 0.4892 GB, free: 9.949 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02369/0.4442, allocations: 16.13 MB / 0.5049 GB, free: 9.254 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.4454, allocations: 1.608 MB / 0.5065 GB, free: 7.617 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001127/0.4466, allocations: 391.1 kB / 0.5069 GB, free: 7.23 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/0.4479, allocations: 1.136 MB / 0.508 GB, free: 6.094 MB / 430.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4479, allocations: 0 / 0.508 GB, free: 6.094 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2922/0.74, allocations: 63.55 MB / 0.5701 GB, free: 150.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.83/19.57, allocations: 3.344 kB / 0.5701 GB, free: 150.8 MB / 478.1 MB " [Timeout remaining time 640] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.95811287104152] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 19.779495616036 19.799476976 19.467141835 Calling exit ...