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.001505/0.001505, allocations: 114.8 kB / 21.22 MB, free: 0.7305 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.001672/0.001672, allocations: 212.2 kB / 24.53 MB, free: 4.066 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.392/1.392, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.001463/0.001463, allocations: 47.92 kB / 378.6 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2436, allocations: 53.36 MB / 431.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005452/0.249, allocations: 4.282 MB / 436.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002426/0.2514, allocations: 1.23 MB / 437.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003536/0.2518, allocations: 11.94 kB / 437.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000288/0.2521, allocations: 106.8 kB / 437.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004028/0.2525, allocations: 190.3 kB / 437.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006394/0.2531, allocations: 327.6 kB / 438.1 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.2542, allocations: 1.093 MB / 439.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003245/0.2545, allocations: 203.1 kB / 439.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004419/0.255, allocations: 414.8 kB / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005168/0.2555, allocations: 466.3 kB / 440.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.2556, allocations: 116 kB / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.2558, allocations: 120 kB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001881/0.256, allocations: 227.3 kB / 440.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004035/0.2564, allocations: 454 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.2576, allocations: 1.227 MB / 442.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2576, allocations: 0 / 442.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2576, allocations: 0 / 442.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.2576, allocations: 4 kB / 442.3 MB, free: 12.38 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.002889/0.2605, allocations: 1.198 MB / 443.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.2605, allocations: 12.03 kB / 443.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.462e-05/0.2605, allocations: 13.5 kB / 443.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.2607, allocations: 110.7 kB / 443.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001545/0.2608, allocations: 88.42 kB / 443.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007733/0.2616, allocations: 424.1 kB / 444.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.635e-05/0.2616, allocations: 45.69 kB / 444.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.2618, allocations: 56.38 kB / 444.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.2641, allocations: 0.9719 MB / 445.2 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.2641, allocations: 4 kB / 445.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.83e-05/0.2642, allocations: 24 kB / 445.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.2642, allocations: 16 kB / 445.3 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003028/0.2672, allocations: 0.9991 MB / 446.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005324/0.2725, allocations: 3.148 MB / 449.4 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002391/0.2749, allocations: 0.7434 MB / 450.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001231/0.2761, allocations: 417.8 kB / 450.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.979e-05/0.2762, allocations: 16.48 kB / 450.6 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001276/0.2775, allocations: 461.1 kB / 451.1 MB, free: 3.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 5.059e-06/0.2775, allocations: 3.984 kB / 451.1 MB, free: 3.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003445/0.2809, allocations: 1.107 MB / 452.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002503/0.2812, allocations: 376.3 kB / 452.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009131/0.2821, allocations: 0.5732 MB / 453.1 MB, free: 1.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.545e-05/0.2822, allocations: 41.7 kB / 453.1 MB, free: 1.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003323/0.2825, allocations: 380.4 kB / 453.5 MB, free: 0.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001971/0.2827, allocations: 178.5 kB / 453.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002709/0.283, allocations: 138.6 kB / 453.8 MB, free: 488 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002097/0.2832, allocations: 374.7 kB / 454.2 MB, free: 104 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.2844, allocations: 405.8 kB / 454.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.2859, allocations: 0.6733 MB / 455.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/0.2884, allocations: 0.9752 MB / 456.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.2884, allocations: 0 / 456.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003054/0.2914, allocations: 1.14 MB / 457.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.33e-05/0.2915, allocations: 63.41 kB / 457.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.2915, allocations: 8 kB / 457.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/0.2915, allocations: 8 kB / 457.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.2926, allocations: 223.9 kB / 457.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.102e-05/0.2926, allocations: 15.92 kB / 457.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.2936, allocations: 191.2 kB / 457.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.779e-05/0.2937, allocations: 35.98 kB / 457.9 MB, free: 12.12 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.0003532/0.2941, allocations: 225.5 kB / 458.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.2942, allocations: 71.58 kB / 458.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000166/0.2943, allocations: 74.34 kB / 458.3 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.2943, allocations: 4 kB / 458.3 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.2943, allocations: 0 / 458.3 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.2944, allocations: 3.984 kB / 458.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003572/0.2979, allocations: 1.645 MB / 459.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.2979, allocations: 4 kB / 459.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007834/0.2987, allocations: 147.8 kB / 460.1 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.313e-06/0.2987, allocations: 4 kB / 460.1 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.666e-05/0.2988, allocations: 11.98 kB / 460.1 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2988, allocations: 0 / 460.1 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.2988, allocations: 3.938 kB / 460.1 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/0.3023, allocations: 1.303 MB / 461.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.3024, allocations: 71.53 kB / 461.5 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.921e-05/0.3025, allocations: 12 kB / 461.5 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007591/0.3032, allocations: 111.8 kB / 461.6 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.3034, allocations: 52.3 kB / 461.6 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.483e-05/0.3034, allocations: 16 kB / 461.7 MB, free: 8.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006216/0.3041, allocations: 406.8 kB / 462.1 MB, free: 7.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3041, allocations: 3.938 kB / 462.1 MB, free: 7.895 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006415/0.3047, allocations: 179.8 kB / 462.2 MB, free: 7.719 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.003776/0.3085, allocations: 1.861 MB / 464.1 MB, free: 5.832 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.311, allocations: 0.9658 MB / 465.1 MB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.311, allocations: 4 kB / 465.1 MB, free: 4.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.3122, allocations: 394.5 kB / 465.4 MB, free: 4.457 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005794/0.3127, allocations: 114.1 kB / 465.6 MB, free: 4.348 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/0.3249, allocations: 6.458 MB / 472 MB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005289/0.3255, allocations: 0.8746 MB / 472.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003803/0.3259, allocations: 88.84 kB / 473 MB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004077/0.3263, allocations: 231.4 kB / 473.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3263, allocations: 0 / 473.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0415/0.3678, allocations: 15.13 MB / 488.3 MB, free: 13.49 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.83, allocations: 12.97 kB / 488.4 MB, free: 13.48 MB / 398.1 MB " [Timeout remaining time 648] (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.171135079988744] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 11.99424953799462 12.008249064 11.74780937 Calling exit ...