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.001249/0.001249, allocations: 103.3 kB / 21.96 MB, free: 5.219 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.001335/0.001335, allocations: 214 kB / 25.26 MB, free: 3.129 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.345/1.345, allocations: 207.7 MB / 236.1 MB, free: 9.793 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.001824/0.001824, allocations: 54.58 kB / 348 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.252, allocations: 49.16 MB / 397.1 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009468/0.2614, allocations: 11.27 MB / 408.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02147/0.2829, allocations: 16.69 MB / 425.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002923/0.2858, allocations: 191.1 kB / 425.3 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003293/0.2891, allocations: 1.001 MB / 426.3 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008388/0.2975, allocations: 2.272 MB / 428.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004662/0.3022, allocations: 1.348 MB / 429.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01185/0.314, allocations: 6.26 MB / 436.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006099/0.3146, allocations: 249 kB / 436.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001788/0.3164, allocations: 1.015 MB / 437.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.3178, allocations: 1.029 MB / 438.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001956/0.318, allocations: 71.94 kB / 438.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003534/0.3215, allocations: 1.113 MB / 439.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003652/0.3219, allocations: 313.8 kB / 439.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.3231, allocations: 0.9623 MB / 440.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005556/0.3286, allocations: 3.71 MB / 444.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3286, allocations: 4 kB / 444.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3286, allocations: 4 kB / 444.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.478e-05/0.3287, allocations: 0 / 444.6 MB, free: 3.605 MB / 350.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.005276/0.334, allocations: 3.578 MB / 448.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.334, allocations: 11.98 kB / 448.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.188e-05/0.3341, allocations: 21 kB / 448.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.3342, allocations: 90.52 kB / 448.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004692/0.3346, allocations: 393.5 kB / 448.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003591/0.3382, allocations: 2.378 MB / 451.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.3383, allocations: 29 kB / 451.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.3384, allocations: 51.95 kB / 451.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.3398, allocations: 0.707 MB / 451.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3398, allocations: 0 / 451.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.055e-05/0.3399, allocations: 19.98 kB / 451.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.3399, allocations: 19.98 kB / 451.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.3415, allocations: 0.8007 MB / 452.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004799/0.3463, allocations: 2.711 MB / 455.4 MB, free: 8.582 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.3475, allocations: 0.5634 MB / 456 MB, free: 8.008 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009858/0.3485, allocations: 0.5772 MB / 456.5 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02449/0.373, allocations: 13.71 MB / 470.2 MB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007745/0.3737, allocations: 369.4 kB / 470.6 MB, free: 8.957 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/0.3737, allocations: 0 / 470.6 MB, free: 8.957 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003306/0.377, allocations: 1.314 MB / 471.9 MB, free: 7.633 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.3771, allocations: 63.39 kB / 472 MB, free: 7.559 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0037/0.3808, allocations: 2.816 MB / 474.8 MB, free: 4.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.612e-05/0.3808, allocations: 41.7 kB / 474.8 MB, free: 4.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001318/0.3822, allocations: 1.404 MB / 476.2 MB, free: 3.266 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.3823, allocations: 174.6 kB / 476.4 MB, free: 3.094 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000326/0.3827, allocations: 226.4 kB / 476.6 MB, free: 2.867 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3828, allocations: 337.9 kB / 477 MB, free: 2.531 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005742/0.3834, allocations: 241.8 kB / 477.2 MB, free: 2.293 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00089/0.3843, allocations: 0.5927 MB / 477.8 MB, free: 1.535 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001593/0.3859, allocations: 0.8841 MB / 478.7 MB, free: 492 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.3859, allocations: 4 kB / 478.7 MB, free: 488 kB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002699/0.3886, allocations: 1.286 MB / 480 MB, free: 15.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.919e-05/0.3886, allocations: 8 kB / 480 MB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001712/0.3888, allocations: 80 kB / 480 MB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006672/0.3895, allocations: 280.8 kB / 480.3 MB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005769/0.3901, allocations: 171.6 kB / 480.5 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.3911, allocations: 0.8764 MB / 481.4 MB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.3921, allocations: 119.2 kB / 481.5 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.3922, allocations: 60 kB / 481.5 MB, free: 13.57 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.0008728/0.3931, allocations: 433.5 kB / 482 MB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005281/0.3936, allocations: 385.4 kB / 482.3 MB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002803/0.3965, allocations: 1.267 MB / 483.6 MB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.3965, allocations: 4 kB / 483.6 MB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3965, allocations: 0 / 483.6 MB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.3965, allocations: 7.922 kB / 483.6 MB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0036/0.4001, allocations: 2.111 MB / 485.7 MB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001064/0.4002, allocations: 72 kB / 485.8 MB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003067/0.4005, allocations: 63.88 kB / 485.9 MB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004924/0.401, allocations: 264.9 kB / 486.1 MB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.809e-05/0.401, allocations: 35.98 kB / 486.2 MB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009667/0.402, allocations: 0.8645 MB / 487 MB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.402, allocations: 4.031 kB / 487 MB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00192/0.4039, allocations: 1.139 MB / 488.2 MB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007363/0.4047, allocations: 415.3 kB / 488.6 MB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.4049, allocations: 8 kB / 488.6 MB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006286/0.4056, allocations: 35.89 kB / 488.6 MB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.4057, allocations: 59.94 kB / 488.7 MB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.12e-05/0.4058, allocations: 43.98 kB / 488.7 MB, free: 6.227 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002506/0.4083, allocations: 1.832 MB / 490.5 MB, free: 4.391 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4083, allocations: 0 / 490.5 MB, free: 4.391 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001275/0.4096, allocations: 0.5774 MB / 491.1 MB, free: 3.812 MB / 398.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.003387/0.413, allocations: 2.375 MB / 493.5 MB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001806/0.4148, allocations: 0.8179 MB / 494.3 MB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.4148, allocations: 0 / 494.3 MB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009012/0.4157, allocations: 471.9 kB / 494.8 MB, free: 68 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/0.4174, allocations: 0.5069 MB / 495.3 MB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02402/0.4414, allocations: 16.12 MB / 0.4994 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.4425, allocations: 1.057 MB / 0.5005 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001089/0.4436, allocations: 395 kB / 0.5008 GB, free: 13.38 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/0.4449, allocations: 1.128 MB / 0.5019 GB, free: 12.25 MB / 430.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4449, allocations: 4 kB / 0.5019 GB, free: 12.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3012/0.7461, allocations: 63.5 MB / 0.5639 GB, free: 147 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.09/19.83, allocations: 6.969 kB / 0.564 GB, free: 147 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: 22.231525051989593] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 20.036248008022085 20.047851698 19.71647245 Calling exit ...