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.001333/0.001333, allocations: 118.2 kB / 18.49 MB, free: 4.566 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.001411/0.001411, allocations: 218.3 kB / 21.46 MB, free: 1.613 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.472/1.472, allocations: 230.4 MB / 254.7 MB, free: 15 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.001869/0.001869, allocations: 68.08 kB / 373.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1121, allocations: 53.38 MB / 427.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006274/0.1184, allocations: 4.274 MB / 431.3 MB, free: 292 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2276/0.346, allocations: 1.2 MB / 432.5 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004614/0.3465, allocations: 11.44 kB / 432.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002888/0.3467, allocations: 107.2 kB / 432.7 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003926/0.3471, allocations: 188.4 kB / 432.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006789/0.3478, allocations: 326.4 kB / 433.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009784/0.3488, allocations: 1.093 MB / 434.3 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000302/0.3491, allocations: 202.8 kB / 434.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003779/0.3495, allocations: 411.9 kB / 434.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000409/0.3499, allocations: 472.8 kB / 435.3 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.3501, allocations: 118.1 kB / 435.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001738/0.3502, allocations: 118.6 kB / 435.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001636/0.3504, allocations: 220.9 kB / 435.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003628/0.3508, allocations: 446.2 kB / 436.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001479/0.3522, allocations: 1.228 MB / 437.4 MB, free: 6.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3522, allocations: 0 / 437.4 MB, free: 6.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3522, allocations: 0 / 437.4 MB, free: 6.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.09e-05/0.3523, allocations: 1.469 kB / 437.4 MB, free: 6.188 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.003531/0.3558, allocations: 1.276 MB / 438.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.615e-05/0.3559, allocations: 9.562 kB / 438.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.367e-05/0.3559, allocations: 16.16 kB / 438.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000152/0.3561, allocations: 105.2 kB / 438.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000232/0.3563, allocations: 91.34 kB / 438.9 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008292/0.3571, allocations: 489 kB / 439.4 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.463e-05/0.3572, allocations: 46.59 kB / 439.4 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.3573, allocations: 56.81 kB / 439.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00257/0.3599, allocations: 0.971 MB / 440.5 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.3599, allocations: 0.9844 kB / 440.5 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-05/0.36, allocations: 28.67 kB / 440.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.079e-05/0.36, allocations: 14.53 kB / 440.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003529/0.3636, allocations: 0.9961 MB / 441.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005694/0.3693, allocations: 3.206 MB / 444.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002521/0.3718, allocations: 0.8891 MB / 445.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/0.3731, allocations: 422.3 kB / 446 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.254e-05/0.3732, allocations: 16.45 kB / 446 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001396/0.3745, allocations: 470.9 kB / 446.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.657e-06/0.3746, allocations: 0 / 446.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.00359/0.3781, allocations: 1.094 MB / 447.6 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/0.3783, allocations: 375 kB / 448 MB, free: 436 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.3795, allocations: 0.5735 MB / 448.5 MB, free: 160 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.223e-05/0.3795, allocations: 39.39 kB / 448.6 MB, free: 120 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000502/0.38, allocations: 390.7 kB / 449 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.3803, allocations: 175.1 kB / 449.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003312/0.3806, allocations: 145.7 kB / 449.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002619/0.3809, allocations: 377.2 kB / 449.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.3822, allocations: 402.7 kB / 450 MB, free: 15.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00167/0.3839, allocations: 0.6751 MB / 450.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002542/0.3864, allocations: 0.9682 MB / 451.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.3865, allocations: 2.688 kB / 451.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003253/0.3897, allocations: 1.144 MB / 452.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.425e-05/0.3898, allocations: 62.06 kB / 452.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.3898, allocations: 6.531 kB / 452.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.816e-05/0.3898, allocations: 10.75 kB / 452.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.3908, allocations: 227.8 kB / 453.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.3909, allocations: 12.41 kB / 453.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.392, allocations: 192.1 kB / 453.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.112e-05/0.3921, allocations: 35.31 kB / 453.4 MB, free: 13.55 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.0003655/0.3925, allocations: 226.1 kB / 453.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.3926, allocations: 68.25 kB / 453.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001737/0.3927, allocations: 75.67 kB / 453.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.3928, allocations: 5.938 kB / 453.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.3928, allocations: 0.5156 kB / 453.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.3928, allocations: 2.906 kB / 453.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003578/0.3964, allocations: 1.671 MB / 455.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3964, allocations: 0 / 455.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008061/0.3972, allocations: 148.7 kB / 455.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.3972, allocations: 2.062 kB / 455.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.179e-05/0.3972, allocations: 20.3 kB / 455.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.3972, allocations: 3.531 kB / 455.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-06/0.3972, allocations: 6.375 kB / 455.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00352/0.4008, allocations: 1.312 MB / 456.9 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002521/0.401, allocations: 154.2 kB / 457 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.4011, allocations: 12 kB / 457 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008194/0.4019, allocations: 106 kB / 457.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.4021, allocations: 51.59 kB / 457.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.123e-05/0.4021, allocations: 18.64 kB / 457.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006609/0.4028, allocations: 398.3 kB / 457.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4028, allocations: 4 kB / 457.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000683/0.4035, allocations: 176.6 kB / 457.8 MB, free: 10.86 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.003848/0.4073, allocations: 1.864 MB / 459.6 MB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002731/0.4101, allocations: 0.9617 MB / 460.6 MB, free: 9.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4101, allocations: 0 / 460.6 MB, free: 9.066 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.4112, allocations: 399.1 kB / 461 MB, free: 8.883 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000717/0.4119, allocations: 111.7 kB / 461.1 MB, free: 8.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/0.4251, allocations: 6.474 MB / 467.6 MB, free: 4.566 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/0.4255, allocations: 0.877 MB / 468.5 MB, free: 3.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004342/0.426, allocations: 85.58 kB / 468.5 MB, free: 3.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004315/0.4264, allocations: 230.5 kB / 468.8 MB, free: 3.562 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4264, allocations: 3.938 kB / 468.8 MB, free: 3.559 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03687/0.4633, allocations: 14.54 MB / 483.3 MB, free: 6.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.259/9.723, allocations: 10.56 kB / 483.3 MB, free: 6.395 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.166420171968639] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 9.854793327045627 9.874875018 9.518334221 Calling exit ...