Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.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.001314/0.001314, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001369/0.001369, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.408/1.408, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 47.92 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2514, allocations: 53.36 MB / 431.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005216/0.2566, allocations: 3.827 MB / 435.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.2589, allocations: 1.179 MB / 436.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003069/0.2592, allocations: 15.94 kB / 436.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002848/0.2595, allocations: 102.9 kB / 437 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004118/0.2599, allocations: 194.3 kB / 437.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007022/0.2606, allocations: 335.6 kB / 437.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001066/0.2616, allocations: 1.089 MB / 438.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003525/0.262, allocations: 199.1 kB / 438.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000404/0.2624, allocations: 418.8 kB / 439.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005062/0.2629, allocations: 470.2 kB / 439.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.263, allocations: 120 kB / 439.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001644/0.2632, allocations: 116 kB / 439.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002106/0.2634, allocations: 223.4 kB / 440.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003716/0.2638, allocations: 374.5 kB / 440.5 MB, free: 14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001232/0.265, allocations: 1.234 MB / 441.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.265, allocations: 4 kB / 441.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.265, allocations: 0 / 441.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.265, allocations: 0 / 441.7 MB, free: 12.76 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002843/0.2679, allocations: 1.202 MB / 442.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.2679, allocations: 8.031 kB / 442.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.14e-05/0.268, allocations: 17.5 kB / 442.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.2681, allocations: 110.7 kB / 443 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/0.2682, allocations: 88.36 kB / 443.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007061/0.269, allocations: 420.1 kB / 443.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.927e-05/0.269, allocations: 45.69 kB / 443.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.2691, allocations: 56.38 kB / 443.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002303/0.2714, allocations: 1.277 MB / 444.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.2714, allocations: 0 / 444.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.867e-05/0.2715, allocations: 31.98 kB / 444.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.2715, allocations: 16 kB / 445 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002796/0.2743, allocations: 1.003 MB / 446 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004774/0.2791, allocations: 2.915 MB / 448.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002228/0.2813, allocations: 0.7395 MB / 449.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001131/0.2825, allocations: 413.9 kB / 450 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.932e-05/0.2825, allocations: 12.42 kB / 450 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001178/0.2837, allocations: 473 kB / 450.5 MB, free: 3.602 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 4.869e-06/0.2837, allocations: 3.984 kB / 450.5 MB, free: 3.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003028/0.2867, allocations: 1.096 MB / 451.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002324/0.287, allocations: 376.3 kB / 452 MB, free: 2.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008222/0.2878, allocations: 0.5732 MB / 452.5 MB, free: 1.453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.276e-05/0.2878, allocations: 37.7 kB / 452.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003245/0.2882, allocations: 380.5 kB / 452.9 MB, free: 1.035 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.2883, allocations: 182.5 kB / 453.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/0.2886, allocations: 138.6 kB / 453.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.2888, allocations: 378.7 kB / 453.6 MB, free: 344 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.29, allocations: 461.1 kB / 454.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.2915, allocations: 1.036 MB / 455.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002252/0.2938, allocations: 0.9713 MB / 456.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.2938, allocations: 4 kB / 456.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002914/0.2967, allocations: 1.202 MB / 457.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.468e-05/0.2968, allocations: 71.42 kB / 457.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.2968, allocations: 4 kB / 457.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.488e-05/0.2968, allocations: 12 kB / 457.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009894/0.2978, allocations: 215.6 kB / 457.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.14e-05/0.2978, allocations: 19.98 kB / 457.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.2991, allocations: 191.2 kB / 457.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.2992, allocations: 35.94 kB / 457.8 MB, free: 11.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003831/0.2996, allocations: 221.5 kB / 458 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.2997, allocations: 71.56 kB / 458.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001617/0.2998, allocations: 74.41 kB / 458.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.2999, allocations: 4 kB / 458.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2999, allocations: 0 / 458.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.2999, allocations: 4 kB / 458.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003222/0.3031, allocations: 1.516 MB / 459.7 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3031, allocations: 0 / 459.7 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007557/0.3038, allocations: 143.8 kB / 459.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.789e-06/0.3039, allocations: 4 kB / 459.9 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.992e-05/0.3039, allocations: 12 kB / 459.9 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.3039, allocations: 3.984 kB / 459.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/0.3039, allocations: 11.88 kB / 459.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003325/0.3072, allocations: 1.303 MB / 461.2 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.3074, allocations: 67.53 kB / 461.3 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001131/0.3075, allocations: 12 kB / 461.3 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007433/0.3083, allocations: 111.9 kB / 461.4 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.3084, allocations: 56.28 kB / 461.4 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.402e-05/0.3085, allocations: 8 kB / 461.4 MB, free: 8.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006367/0.3091, allocations: 406.8 kB / 461.8 MB, free: 7.676 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3091, allocations: 0 / 461.8 MB, free: 7.676 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006872/0.3098, allocations: 183.8 kB / 462 MB, free: 7.496 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003755/0.3136, allocations: 1.866 MB / 463.9 MB, free: 5.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002593/0.3162, allocations: 1.019 MB / 464.9 MB, free: 4.555 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.3162, allocations: 4 kB / 464.9 MB, free: 4.551 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.3172, allocations: 399.3 kB / 465.3 MB, free: 4.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007184/0.3179, allocations: 117.5 kB / 465.4 MB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/0.3301, allocations: 6.694 MB / 472.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.3304, allocations: 288.6 kB / 472.4 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004104/0.3308, allocations: 80.86 kB / 472.5 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004241/0.3312, allocations: 235.4 kB / 472.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3312, allocations: 0 / 472.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04443/0.3756, allocations: 15.64 MB / 488.3 MB, free: 13.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.35, allocations: 4.062 kB / 488.3 MB, free: 13.09 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.97668e-11 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.690993322990835] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 12.517204280942678 12.533017475 12.264690341 Calling exit ...