Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 101.5 kB / 21.21 MB, free: 0.5078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 191.6 kB / 24.49 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 52.06 kB / 371.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.228, allocations: 52.18 MB / 423.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005373/0.2334, allocations: 3.81 MB / 427.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.2354, allocations: 1.148 MB / 428.3 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002185/0.2356, allocations: 11.94 kB / 428.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002402/0.2358, allocations: 106.9 kB / 428.4 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003492/0.2362, allocations: 182.3 kB / 428.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006269/0.2368, allocations: 339.5 kB / 428.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.2378, allocations: 1.093 MB / 430 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003258/0.2382, allocations: 203.1 kB / 430.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004344/0.2386, allocations: 414.8 kB / 430.6 MB, free: 7.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005186/0.2391, allocations: 466.2 kB / 431.1 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.2393, allocations: 120 kB / 431.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001561/0.2394, allocations: 120 kB / 431.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002058/0.2396, allocations: 223.4 kB / 431.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000381/0.24, allocations: 370.5 kB / 431.9 MB, free: 5.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.2412, allocations: 1.242 MB / 433.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2412, allocations: 0 / 433.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2412, allocations: 0 / 433.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.2412, allocations: 0 / 433.1 MB, free: 4.719 MB / 334.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.002853/0.2441, allocations: 1.206 MB / 434.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.2441, allocations: 8.031 kB / 434.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.793e-05/0.2442, allocations: 21.5 kB / 434.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.2443, allocations: 102.7 kB / 434.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.2444, allocations: 84.42 kB / 434.6 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006745/0.2451, allocations: 424.1 kB / 435 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.814e-05/0.2452, allocations: 45.69 kB / 435 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.2453, allocations: 56.38 kB / 435.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002317/0.2476, allocations: 1.281 MB / 436.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.2476, allocations: 0 / 436.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.89e-05/0.2477, allocations: 35.92 kB / 436.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.2477, allocations: 16 kB / 436.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002865/0.2506, allocations: 0.9952 MB / 437.4 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005014/0.2556, allocations: 2.903 MB / 440.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/0.2578, allocations: 0.7382 MB / 441 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.259, allocations: 427.7 kB / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.717e-05/0.259, allocations: 12.42 kB / 441.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.2602, allocations: 465 kB / 441.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.785e-06/0.2602, allocations: 0 / 441.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003246/0.2635, allocations: 1.104 MB / 443 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002387/0.2637, allocations: 368.3 kB / 443.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009471/0.2646, allocations: 0.5771 MB / 444 MB, free: 9.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.2648, allocations: 41.7 kB / 444 MB, free: 9.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003197/0.2651, allocations: 376.5 kB / 444.4 MB, free: 9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.2653, allocations: 174.5 kB / 444.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002864/0.2656, allocations: 142.6 kB / 444.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.2658, allocations: 382.7 kB / 445.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.267, allocations: 457.1 kB / 445.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.2686, allocations: 1.033 MB / 446.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00233/0.271, allocations: 0.979 MB / 447.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.271, allocations: 0 / 447.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002927/0.2739, allocations: 1.205 MB / 448.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.29e-05/0.274, allocations: 69.89 kB / 448.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.274, allocations: 11.98 kB / 448.8 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.274, allocations: 8 kB / 448.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.275, allocations: 223.8 kB / 449 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.905e-05/0.275, allocations: 15.98 kB / 449 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.2761, allocations: 179.2 kB / 449.2 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.593e-05/0.2762, allocations: 35.98 kB / 449.3 MB, free: 3.746 MB / 350.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.0003331/0.2765, allocations: 225.5 kB / 449.5 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.2766, allocations: 67.58 kB / 449.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001627/0.2768, allocations: 70.41 kB / 449.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.2768, allocations: 4 kB / 449.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.2768, allocations: 4 kB / 449.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.2768, allocations: 3.984 kB / 449.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003358/0.2801, allocations: 1.524 MB / 451.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2801, allocations: 0 / 451.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00078/0.2809, allocations: 143.8 kB / 451.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.2809, allocations: 4 kB / 451.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.782e-05/0.281, allocations: 15.98 kB / 451.3 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.281, allocations: 3.938 kB / 451.3 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.281, allocations: 3.938 kB / 451.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003219/0.2842, allocations: 1.303 MB / 452.6 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.2843, allocations: 71.53 kB / 452.7 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.2844, allocations: 16.06 kB / 452.7 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007384/0.2852, allocations: 103.8 kB / 452.8 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.2853, allocations: 60.3 kB / 452.9 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/0.2853, allocations: 11.98 kB / 452.9 MB, free: 40 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000602/0.2859, allocations: 402.8 kB / 453.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2859, allocations: 0 / 453.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006093/0.2866, allocations: 183.8 kB / 453.4 MB, free: 15.47 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.003612/0.2902, allocations: 1.863 MB / 455.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002535/0.2927, allocations: 1.015 MB / 456.3 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.2927, allocations: 9.062 kB / 456.3 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.2938, allocations: 398.2 kB / 456.7 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006309/0.2944, allocations: 110.1 kB / 456.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/0.3066, allocations: 6.705 MB / 463.5 MB, free: 4.996 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.3069, allocations: 284.6 kB / 463.8 MB, free: 4.691 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000405/0.3073, allocations: 80.86 kB / 463.9 MB, free: 4.613 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004295/0.3077, allocations: 231.4 kB / 464.1 MB, free: 4.387 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3077, allocations: 0 / 464.1 MB, free: 4.387 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0424/0.3501, allocations: 15.59 MB / 479.7 MB, free: 5.109 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.32, allocations: 7.438 kB / 479.7 MB, free: 5.105 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.97668e-11 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.582954582991078] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 12.488545704982243 12.515565271 12.269526229 Calling exit ...