Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.009905/0.009905, allocations: 100.7 kB / 21.96 MB, free: 5.215 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.002272/0.002272, allocations: 217.5 kB / 25.25 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 207.7 MB / 236.1 MB, free: 9.938 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 63.91 kB / 348 MB, free: 9.828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.237, allocations: 49.15 MB / 397.2 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003895/0.2409, allocations: 3.633 MB / 400.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.2424, allocations: 1.088 MB / 401.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001949/0.2426, allocations: 13.19 kB / 401.9 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002091/0.2428, allocations: 98.42 kB / 402 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002849/0.2431, allocations: 168.8 kB / 402.2 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004657/0.2436, allocations: 293.1 kB / 402.5 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007463/0.2443, allocations: 0.9592 MB / 403.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.2446, allocations: 200.4 kB / 403.6 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003376/0.2449, allocations: 397.1 kB / 404 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003782/0.2453, allocations: 438.5 kB / 404.4 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.2455, allocations: 112.8 kB / 404.5 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.2456, allocations: 113.5 kB / 404.7 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.2457, allocations: 208.8 kB / 404.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002924/0.246, allocations: 358.6 kB / 405.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009584/0.247, allocations: 1.148 MB / 406.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.247, allocations: 0 / 406.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.247, allocations: 0 / 406.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.247, allocations: 0.5 kB / 406.4 MB, free: 3.383 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002588/0.2496, allocations: 1.131 MB / 407.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2496, allocations: 13.3 kB / 407.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.598e-05/0.2497, allocations: 18.75 kB / 407.5 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.937e-05/0.2498, allocations: 97.52 kB / 407.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.2499, allocations: 78.97 kB / 407.7 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005207/0.2504, allocations: 389.1 kB / 408.1 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.113e-05/0.2505, allocations: 45.89 kB / 408.1 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.621e-05/0.2506, allocations: 55.69 kB / 408.2 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002013/0.2526, allocations: 1.131 MB / 409.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.2526, allocations: 1.094 kB / 409.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.742e-05/0.2527, allocations: 24.19 kB / 409.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.2527, allocations: 16.53 kB / 409.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002484/0.2551, allocations: 0.9741 MB / 410.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004051/0.2592, allocations: 2.788 MB / 413.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/0.2613, allocations: 0.7336 MB / 413.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/0.2624, allocations: 417.4 kB / 414.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.596e-05/0.2625, allocations: 15.11 kB / 414.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/0.2637, allocations: 461.9 kB / 414.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.775e-06/0.2637, allocations: 0 / 414.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003118/0.2668, allocations: 1.09 MB / 415.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001829/0.267, allocations: 277.4 kB / 416.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007484/0.2677, allocations: 0.4964 MB / 416.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.085e-05/0.2678, allocations: 38.33 kB / 416.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002824/0.2681, allocations: 348.4 kB / 417 MB, free: 12.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.2683, allocations: 180.2 kB / 417.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002602/0.2685, allocations: 139.1 kB / 417.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.2687, allocations: 362.7 kB / 417.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.2699, allocations: 460.4 kB / 418.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001531/0.2714, allocations: 0.908 MB / 419 MB, free: 10.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002315/0.2737, allocations: 0.9679 MB / 419.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.2737, allocations: 2.625 kB / 419.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002927/0.2767, allocations: 1.186 MB / 421.1 MB, free: 9.371 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.549e-05/0.2767, allocations: 69.73 kB / 421.2 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.2768, allocations: 9.562 kB / 421.2 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.2768, allocations: 14.5 kB / 421.2 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.2778, allocations: 217.8 kB / 421.4 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.2778, allocations: 13.69 kB / 421.4 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.2789, allocations: 181.1 kB / 421.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.37e-05/0.279, allocations: 37.09 kB / 421.7 MB, free: 9.117 MB / 334.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.0003407/0.2793, allocations: 213.1 kB / 421.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.2794, allocations: 64 kB / 421.9 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.2796, allocations: 66.58 kB / 422 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/0.2796, allocations: 5.656 kB / 422 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.2796, allocations: 0 / 422 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.2796, allocations: 5.672 kB / 422 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003225/0.2828, allocations: 1.485 MB / 423.5 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2828, allocations: 7.938 kB / 423.5 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007852/0.2836, allocations: 154.9 kB / 423.7 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.2836, allocations: 0 / 423.7 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.2837, allocations: 15.98 kB / 423.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.2837, allocations: 4 kB / 423.7 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2837, allocations: 0 / 423.7 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003294/0.287, allocations: 1.296 MB / 425 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.2872, allocations: 67.52 kB / 425 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.2873, allocations: 12 kB / 425 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007556/0.288, allocations: 103.9 kB / 425.1 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.2882, allocations: 48.36 kB / 425.2 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-05/0.2882, allocations: 19.98 kB / 425.2 MB, free: 6.211 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000538/0.2887, allocations: 350.8 kB / 425.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2887, allocations: 7.938 kB / 425.6 MB, free: 5.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006342/0.2894, allocations: 163.8 kB / 425.7 MB, free: 5.703 MB / 334.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.003624/0.293, allocations: 1.851 MB / 427.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002533/0.2955, allocations: 1.023 MB / 428.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.2955, allocations: 4 kB / 428.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.2966, allocations: 399.1 kB / 429 MB, free: 2.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006182/0.2973, allocations: 93.77 kB / 429.1 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/0.3093, allocations: 6.411 MB / 435.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.3096, allocations: 255.4 kB / 435.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004257/0.31, allocations: 80.66 kB / 435.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004086/0.3104, allocations: 215.3 kB / 436 MB, free: 10.98 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3104, allocations: 0 / 436 MB, free: 10.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04075/0.3511, allocations: 14.35 MB / 450.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.12, allocations: 16.03 kB / 450.4 MB, free: 12.55 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.97668e-11 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.374761944985949] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 12.277681539999321 12.293312248 12.043244592 Calling exit ...