Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.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.001462/0.001462, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001416/0.001416, allocations: 208.7 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 230.5 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 59.91 kB / 378.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3265, allocations: 53.41 MB / 431.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006731/0.3333, allocations: 3.816 MB / 435.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003108/0.3364, allocations: 1.176 MB / 436.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004592/0.3368, allocations: 19.88 kB / 436.9 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003581/0.3372, allocations: 114.8 kB / 437 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004861/0.3377, allocations: 182.3 kB / 437.2 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000891/0.3386, allocations: 335.6 kB / 437.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001175/0.3397, allocations: 1.089 MB / 438.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004169/0.3401, allocations: 203.1 kB / 438.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005001/0.3406, allocations: 410.8 kB / 439.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005807/0.3412, allocations: 470.2 kB / 439.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001608/0.3414, allocations: 119.9 kB / 439.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.3416, allocations: 120 kB / 439.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.3418, allocations: 223.3 kB / 440.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004141/0.3422, allocations: 374.5 kB / 440.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.3435, allocations: 1.238 MB / 441.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3436, allocations: 0 / 441.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3436, allocations: 0 / 441.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.3436, allocations: 0 / 441.8 MB, free: 12.59 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.003028/0.3466, allocations: 1.206 MB / 443 MB, free: 11.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.3467, allocations: 12.03 kB / 443 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.073e-05/0.3467, allocations: 21.5 kB / 443 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001465/0.3468, allocations: 102.7 kB / 443.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.347, allocations: 88.42 kB / 443.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007695/0.3478, allocations: 420.2 kB / 443.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.803e-05/0.3478, allocations: 45.69 kB / 443.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.3479, allocations: 60.38 kB / 443.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002352/0.3503, allocations: 1.269 MB / 445 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.813e-05/0.3503, allocations: 7.922 kB / 445 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-05/0.3504, allocations: 28 kB / 445 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.3504, allocations: 12 kB / 445 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002794/0.3532, allocations: 1.003 MB / 446 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005141/0.3583, allocations: 2.922 MB / 448.9 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.3606, allocations: 0.735 MB / 449.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.3618, allocations: 413.9 kB / 450.1 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.153e-05/0.3618, allocations: 16.36 kB / 450.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001224/0.363, allocations: 465.1 kB / 450.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.577e-06/0.363, allocations: 0 / 450.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003242/0.3663, allocations: 1.096 MB / 451.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000321/0.3666, allocations: 376.3 kB / 452 MB, free: 1.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.3676, allocations: 0.5732 MB / 452.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.477e-05/0.3677, allocations: 41.64 kB / 452.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003424/0.368, allocations: 388.6 kB / 453 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.3682, allocations: 178.5 kB / 453.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002822/0.3685, allocations: 138.6 kB / 453.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002234/0.3687, allocations: 382.7 kB / 453.7 MB, free: 160 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.3699, allocations: 457.1 kB / 454.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001784/0.3717, allocations: 1.033 MB / 455.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00228/0.374, allocations: 0.9791 MB / 456.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.374, allocations: 4 kB / 456.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003142/0.3772, allocations: 1.198 MB / 457.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.714e-05/0.3772, allocations: 71.33 kB / 457.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.3773, allocations: 8 kB / 457.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/0.3773, allocations: 8 kB / 457.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.3784, allocations: 219.8 kB / 457.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.916e-05/0.3784, allocations: 19.92 kB / 457.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.3795, allocations: 191.2 kB / 457.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-05/0.3796, allocations: 32 kB / 457.9 MB, free: 11.59 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.0003737/0.3799, allocations: 225.5 kB / 458.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.3801, allocations: 71.56 kB / 458.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001739/0.3802, allocations: 70.41 kB / 458.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.3803, allocations: 12 kB / 458.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3803, allocations: 0 / 458.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.3803, allocations: 0 / 458.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003407/0.3837, allocations: 1.516 MB / 459.8 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3837, allocations: 0 / 459.8 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008291/0.3845, allocations: 147.7 kB / 459.9 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.622e-05/0.3845, allocations: 7.984 kB / 459.9 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.513e-05/0.3846, allocations: 19.98 kB / 459.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.3846, allocations: 0 / 459.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.3846, allocations: 3.938 kB / 459.9 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003426/0.388, allocations: 1.303 MB / 461.2 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001926/0.3882, allocations: 67.53 kB / 461.3 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.3883, allocations: 16.06 kB / 461.3 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007608/0.3891, allocations: 103.9 kB / 461.4 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.3892, allocations: 56.28 kB / 461.5 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-05/0.3893, allocations: 16 kB / 461.5 MB, free: 7.891 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000643/0.3899, allocations: 402.8 kB / 461.9 MB, free: 7.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3899, allocations: 0 / 461.9 MB, free: 7.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006742/0.3906, allocations: 175.8 kB / 462.1 MB, free: 7.328 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.003803/0.3944, allocations: 1.867 MB / 463.9 MB, free: 5.434 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.397, allocations: 1.02 MB / 465 MB, free: 4.379 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.397, allocations: 0 / 465 MB, free: 4.379 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.3981, allocations: 394.3 kB / 465.3 MB, free: 3.992 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007211/0.3988, allocations: 106.1 kB / 465.4 MB, free: 3.891 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01335/0.4122, allocations: 6.709 MB / 472.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.4125, allocations: 284.6 kB / 472.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004688/0.413, allocations: 80.86 kB / 472.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004479/0.4134, allocations: 231.4 kB / 472.7 MB, free: 12.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.834e-06/0.4134, allocations: 0 / 472.7 MB, free: 12.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0429/0.4563, allocations: 15.64 MB / 488.4 MB, free: 12.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.56, allocations: 6.812 kB / 488.4 MB, free: 12.86 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.97668e-11 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.947378329001367] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 12.727294764015824 12.755236914 12.406851919 Calling exit ...